Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(57)  |  Call(24)  |  Derive(0)  |  Import(33)

        def ModuleSecurityInfo(module_name=None):
    if module_name is not None:
        modsec = _moduleSecurity.get(module_name, None)
        if modsec is not None:
            return modsec
        modsec = _appliedModuleSecurity.get(module_name, None)
        if modsec is not None:
            # Move security info back to to-apply dict (needed for product
            # refresh). Also invoke this check for parent packages already
            # applied
            del _appliedModuleSecurity[module_name]
            _moduleSecurity[module_name] = modsec
            dot = module_name.rfind('.')
            if dot > 0:
                ModuleSecurityInfo(module_name[:dot])
            return modsec
        dot = module_name.rfind('.')
        if dot > 0:
            # If the module is in a package, recursively make sure
            # there are security declarations for the package steps
            # leading to the module
            modname = module_name[dot + 1:]
            pmodsec = ModuleSecurityInfo(module_name[:dot])
            if modname not in pmodsec.names:
                pmodsec.declarePublic(modname)
    return _ModuleSecurityInfo(module_name)
        


src/p/r/Products.PloneOntology-1.0.0/Products/PloneOntology/keyword.py   Products.PloneOntology(Download)
from Products.PythonScripts.standard import url_quote
 
from AccessControl.SecurityInfo import ClassSecurityInfo, ModuleSecurityInfo
 
from config import PROJECTNAME
    USE_BBB_VALIDATORS = True
 
module_security = ModuleSecurityInfo('Products.PloneOntology.keyword')
 
 

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/utils.py   Products.CMFCore(Download)
from AccessControl.Role import gather_permissions
from AccessControl.SecurityInfo import ClassSecurityInfo
from AccessControl.SecurityInfo import ModuleSecurityInfo
from AccessControl.SecurityManagement import getSecurityManager
from Acquisition.interfaces import IAcquirer
SUBTEMPLATE = '__SUBTEMPLATE__'
 
security = ModuleSecurityInfo( 'Products.CMFCore.utils' )
 
_globals = globals()

src/z/o/Zope2-2.13.22/src/ZTUtils/__init__.py   Zope2(Download)
"""Package of template utility classes and functions.
"""
from AccessControl.SecurityInfo import ModuleSecurityInfo
security = ModuleSecurityInfo('ZTUtils')
 

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/permissions.py   Products.CMFCore(Download)
from AccessControl.Permission import ApplicationDefaultPermissions
from AccessControl.Permission import pname
from AccessControl.SecurityInfo import ModuleSecurityInfo
 
 
security = ModuleSecurityInfo('Products.CMFCore.permissions')

src/p/r/Products.PythonScripts-2.13.2/src/Products/PythonScripts/standard.py   Products.PythonScripts(Download)
from urllib import urlencode
 
from AccessControl.SecurityInfo import ModuleSecurityInfo
from AccessControl.SecurityManagement import getSecurityManager
from App.special_dtml import HTML
from ZPublisher.HTTPRequest import record
 
security = ModuleSecurityInfo('Products.PythonScripts.standard')
 
security.declarePublic('special_formats',

src/p/r/Products.GenericSetup-1.7.4/Products/GenericSetup/__init__.py   Products.GenericSetup(Download)
"""
 
from AccessControl.SecurityInfo import ModuleSecurityInfo
 
from Products.GenericSetup.interfaces import BASE
    as profile_registry
 
security = ModuleSecurityInfo('Products.GenericSetup')
security.declareProtected(ManagePortal, 'profile_registry')
 

src/p/r/Products.GenericSetup-1.7.4/Products/GenericSetup/exceptions.py   Products.GenericSetup(Download)
"""
 
from AccessControl.SecurityInfo import ModuleSecurityInfo
security = ModuleSecurityInfo('Products.GenericSetup.exceptions')
 

src/p/r/Products.CMFDefault-2.3.0-beta2/Products/CMFDefault/utils.py   Products.CMFDefault(Download)
from sgmllib import SGMLParser
 
from AccessControl.SecurityInfo import ModuleSecurityInfo
from Acquisition import aq_get
from App.Common import package_home
from Products.CMFDefault.interfaces import IHTMLScrubber
 
security = ModuleSecurityInfo( 'Products.CMFDefault.utils' )
 
try:

src/z/o/Zope-HEAD/src/ZTUtils/__init__.py   Zope(Download)
"""Package of template utility classes and functions.
"""
from AccessControl.SecurityInfo import ModuleSecurityInfo
security = ModuleSecurityInfo('ZTUtils')
 

src/p/r/Products.DCWorkflow-2.3.0-beta/Products/DCWorkflow/utils.py   Products.DCWorkflow(Download)
from AccessControl.Permission import Permission
from AccessControl.Role import gather_permissions
from AccessControl.SecurityInfo import ModuleSecurityInfo
from App.Common import package_home
from zope.i18nmessageid import MessageFactory
 
security = ModuleSecurityInfo('Products.DCWorkflow.utils')

  1 | 2 | 3 | 4  Next