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

All Samples(12)  |  Call(6)  |  Derive(0)  |  Import(6)

src/p/r/Products.CMFPlone-5.0a2/Products/CMFPlone/CatalogTool.py   Products.CMFPlone(Download)
from Products.CMFCore.utils import _getAuthenticatedUser
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.CatalogTool import _mergedLocalRoles
from Products.CMFCore.CatalogTool import CatalogTool as BaseTool
from Products.CMFCore.permissions import AccessInactivePortalContent
            localroles = acl_users._getAllLocalRoles(obj)
    except AttributeError:
        localroles = _mergedLocalRoles(obj)
    for user, roles in localroles.items():
        for role in roles:

src/c/o/collective.portlet.truereview-1.0b1/collective/portlet/truereview/indexer.py   collective.portlet.truereview(Download)
from AccessControl.PermissionRole import rolesForPermissionOn
 
from Products.CMFCore.CatalogTool import _mergedLocalRoles
from Products.CMFCore.utils import getToolByName
from Products.CMFCore import permissions
        localroles = acl_users._getAllLocalRoles(obj)
    except AttributeError:
        localroles = _mergedLocalRoles(obj)
 
    for user, roles in localroles.items():

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/CatalogTool.py   Products.CMFPlone(Download)
from Products.CMFCore.utils import _getAuthenticatedUser
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.CatalogTool import _mergedLocalRoles
from Products.CMFCore.CatalogTool import CatalogTool as BaseTool
from Products.CMFCore.permissions import AccessInactivePortalContent
            localroles = acl_users._getAllLocalRoles(obj)
    except AttributeError:
        localroles = _mergedLocalRoles(obj)
    for user, roles in localroles.items():
        for role in roles:

src/s/o/Solgema.fullcalendar-2.3.3/Solgema/fullcalendar/catalog.py   Solgema.fullcalendar(Download)
from plone.indexer.decorator import indexer
from zope.interface import Interface
from AccessControl.PermissionRole import rolesForPermissionOn
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.CatalogTool import _mergedLocalRoles
        localroles = acl_users._getAllLocalRoles(obj)
    except AttributeError:
        localroles = _mergedLocalRoles(obj)
 
    for user, roles in localroles.items():

src/s/o/Solgema.fullcalendar-HEAD/Solgema/fullcalendar/catalog.py   Solgema.fullcalendar(Download)
from plone.indexer.decorator import indexer
from zope.interface import Interface
from AccessControl.PermissionRole import rolesForPermissionOn
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.CatalogTool import _mergedLocalRoles
        localroles = acl_users._getAllLocalRoles(obj)
    except AttributeError:
        localroles = _mergedLocalRoles(obj)
 
    for user, roles in localroles.items():

src/c/o/collective.elasticindex-1.2.1/src/collective/elasticindex/changes.py   collective.elasticindex(Download)
from AccessControl.PermissionRole import rolesForPermissionOn
from Acquisition import aq_base
from Products.CMFCore.CatalogTool import _mergedLocalRoles
from Products.CMFCore.interfaces import IFolderish, IContentish
from Products.CMFCore.utils import getToolByName
            local_roles = acl_users._getAllLocalRoles(content)
    except AttributeError:
        local_roles = _mergedLocalRoles(content)
    for user, roles in local_roles.items():
        for role in roles: