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

All Samples(15)  |  Call(15)  |  Derive(0)  |  Import(0)

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/utils.py   Products.CMFCore(Download)
_tool_interface_registry = {}
 
security.declarePrivate('registerToolInterface')
def registerToolInterface(tool_id, tool_interface):
    """ Register a tool ID for an interface
    _tool_interface_registry[tool_id] = tool_interface
 
security.declarePrivate('getToolInterface')
def getToolInterface(tool_id):
    """ Get the interface registered for a tool ID
#   Security utilities, callable only from unrestricted code.
#
security.declarePrivate('_getAuthenticatedUser')
def _getAuthenticatedUser(self):
    return getSecurityManager().getUser()
 
security.declarePrivate('_checkPermission')
# If Zope ever provides a call to getRolesInContext() through
# the SecurityManager API, the method below needs to be updated.
security.declarePrivate('_limitGrantedRoles')
def _limitGrantedRoles(roles, context, special_roles=()):
    # Only allow a user to grant roles already possessed by that user,

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/permissions.py   Products.CMFCore(Download)
    pass
 
security.declarePrivate('setDefaultRoles')
def setDefaultRoles(permission, roles):
    '''

src/p/r/Products.CMFDefault-2.3.0-beta2/Products/CMFDefault/utils.py   Products.CMFDefault(Download)
    PRODUCTS_CMFUID_INSTALLED = True
 
security.declarePrivate('_dtmldir')
_dtmldir = os.path.join( package_home( globals() ), 'dtml' )
_wwwdir = os.path.join( package_home( globals() ), 'www' )
    return text[bodystart:bodyend]
 
security.declarePrivate('_htfinder')
_htfinder = re.compile(r'(\s|(<[^<>]*?>))*<html.*<body.*?>.*</body>',
                       re.DOTALL)