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

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

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

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 _makeUnprotectedChecker(self):
    roles= getattr(self._obj,'__roles__', ACCESS_PUBLIC)
    allow= getattr(self._obj,'__allow_access_to_unprotected_subobjects__', 0)
    if isinstance(allow, (int, bool)):
      if not allow: roles= ACCESS_PRIVATE
  def _attrRoles(self):
    roles= getattr(self._obj,'__roles__', ACCESS_PUBLIC)
    allow= getattr(self._obj,'__allow_access_to_unprotected_subobjects__', 0)
    if isinstance(allow, (int, bool)):
      if not allow: roles= ACCESS_PRIVATE
def _isPrivat(role):
  return role == ACCESS_PRIVATE or role is ACCESS_NONE
 
 
def _getLoc(c):
def _getRoles(roles):
    '''return nice names for *roles*.'''
    if FILTER_ROLES:
        if roles is ACCESS_PUBLIC: roles= 'public'
        elif roles == ACCESS_PRIVATE: roles= 'private'

src/p/r/Products.Archetypes-HEAD/Products/Archetypes/tests/test_classgen.py   Products.Archetypes(Download)
from DateTime import DateTime
from AccessControl import ClassSecurityInfo
from AccessControl.SecurityInfo import ACCESS_PUBLIC, ACCESS_PRIVATE
from Products.Archetypes.tests.atsitetestcase import ATSiteTestCase
from Products.Archetypes.tests.utils import mkDummyInContext

src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/tests/test_classgen.py   Products.Archetypes(Download)
from DateTime import DateTime
from AccessControl import ClassSecurityInfo
from AccessControl.SecurityInfo import ACCESS_PUBLIC, ACCESS_PRIVATE
from Products.Archetypes.tests.atsitetestcase import ATSiteTestCase
from Products.Archetypes.tests.utils import mkDummyInContext