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

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

src/c/o/collective.teamwork-0.9/collective/teamwork/user/localrole.py   collective.teamwork(Download)
        for obj in self._parent_chain(object):
            if user._check_context(obj):
                for provider in self._getAdapters(obj):
                    for principal_id in principal_ids:
                        context_roles = list(provider.getRoles(principal_id))
        check_roles = set(object_roles)
        for obj in self._parent_chain(object):
            for provider in self._getAdapters(obj):
                for principal_id in principal_ids:
                    roles = list(provider.getRoles(principal_id))
    def getAllLocalRolesInContext(self, object):
        rolemap = {}
        workspace = None
        for obj in self._parent_chain(object):
            for provider in self._getAdapters(obj):