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

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

src/a/c/AccessControl-3.0.8/src/AccessControl/__init__.py   AccessControl(Download)
from AccessControl.SecurityInfo import ACCESS_PRIVATE
from AccessControl.SecurityInfo import ACCESS_PUBLIC
from AccessControl.SecurityInfo import ACCESS_NONE
from AccessControl.SecurityInfo import secureModule
from AccessControl.SecurityInfo import allow_module

src/p/r/Products.DocFinderTab-1.0.5/Products/DocFinderTab/analyse.py   Products.DocFinderTab(Download)
import re, types
 
from AccessControl.SecurityInfo import ClassSecurityInfo, \
     ACCESS_PUBLIC, ACCESS_PRIVATE, ACCESS_NONE
from Acquisition import aq_base, Implicit
def _isPrivat(role):
  return role == ACCESS_PRIVATE or role is ACCESS_NONE
 
 
def _getLoc(c):
        if roles is ACCESS_PUBLIC: roles= 'public'
        elif roles == ACCESS_PRIVATE: roles= 'private'
        elif roles is ACCESS_NONE: roles= 'none'
        else: roles= _filterRoles(roles)
    else:
        if roles is ACCESS_PUBLIC: roles= 'ACCESS_PUBLIC'
        elif roles == ACCESS_PRIVATE: roles= 'ACCESS_PRIVATE'
        elif roles is ACCESS_NONE: roles= 'ACCESS_NONE'