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

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

        def getPermissions():
    return _ac_permissions
        


src/a/c/AccessControl-3.0.8/src/AccessControl/rolemanager.py   AccessControl(Download)
from AccessControl.class_init import InitializeClass
from AccessControl.interfaces import IRoleManager
from AccessControl.Permission import getPermissions
from AccessControl.Permission import Permission
from AccessControl.PermissionMapping import RoleManager
    def possible_permissions(self):
        d = {}
        permissions = getPermissions()
        for p in permissions:
            d[p[0]] = 1

src/z/o/Zope2-2.13.22/src/OFS/ObjectManager.py   Zope2(Download)
from AccessControl import ClassSecurityInfo
from AccessControl.class_init import InitializeClass
from AccessControl.Permission import getPermissions
from AccessControl.Permissions import view_management_screens
from AccessControl.Permissions import access_contents_information
    def _subobject_permissions(self):
        return getPermissions()
 
    def filtered_meta_types(self, user=None):
        # Return a list of the types for which the user has

src/z/o/Zope-HEAD/src/OFS/ObjectManager.py   Zope(Download)
from AccessControl import ClassSecurityInfo
from AccessControl.class_init import InitializeClass
from AccessControl.Permission import getPermissions
from AccessControl.Permissions import view_management_screens
from AccessControl.Permissions import access_contents_information
    def _subobject_permissions(self):
        return getPermissions()
 
    def filtered_meta_types(self, user=None):
        # Return a list of the types for which the user has

src/p/l/plone.api-1.1.0/parts/omelette/plone/api/user.py   plone.api(Download)
# -*- coding: utf-8 -*-
"""Module that provides functionality for user manipulation."""
 
from AccessControl.Permission import getPermissions
from Products.CMFPlone.RegistrationTool import get_member_by_login_name
    with context:
        adopted_user = get_current()
        permissions = (p[0] for p in getPermissions())
        d = {}
        for permission in permissions:

src/p/l/plone.api-1.1.0/src/plone/api/user.py   plone.api(Download)
# -*- coding: utf-8 -*-
"""Module that provides functionality for user manipulation."""
 
from AccessControl.Permission import getPermissions
from Products.CMFPlone.RegistrationTool import get_member_by_login_name
    with context:
        adopted_user = get_current()
        permissions = (p[0] for p in getPermissions())
        d = {}
        for permission in permissions:

src/p/l/plone.api-HEAD/src/plone/api/user.py   plone.api(Download)
# -*- coding: utf-8 -*-
"""Module that provides functionality for user manipulation."""
 
from AccessControl.Permission import getPermissions
from Products.CMFPlone.RegistrationTool import get_member_by_login_name
    with context:
        adopted_user = get_current()
        permissions = (p[0] for p in getPermissions())
        d = {}
        for permission in permissions:

src/p/l/plone.api-HEAD/src/plone/api/tests/test_user.py   plone.api(Download)
# -*- coding: utf-8 -*-
"""Tests for plone.api.user."""
 
from AccessControl.Permission import getPermissions
from plone import api

src/p/l/plone.api-1.1.0/src/plone/api/tests/test_user.py   plone.api(Download)
# -*- coding: utf-8 -*-
"""Tests for plone.api.user."""
 
from AccessControl.Permission import getPermissions
from plone import api

src/p/l/plone.api-1.1.0/parts/omelette/plone/api/tests/test_user.py   plone.api(Download)
# -*- coding: utf-8 -*-
"""Tests for plone.api.user."""
 
from AccessControl.Permission import getPermissions
from plone import api