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

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

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

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 _getRoles(roles):
    '''return nice names for *roles*.'''
    if FILTER_ROLES:
        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'

src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/utils.py   Products.Archetypes(Download)
from AccessControl import ClassSecurityInfo
from AccessControl import ModuleSecurityInfo
from AccessControl.SecurityInfo import ACCESS_PUBLIC
 
from Acquisition import aq_base, aq_inner, aq_parent
            if name not in security.names:
                print '%s.%s has no security' % (klass.__name__, name)
            elif security.names.get(name) is ACCESS_PUBLIC:
                print '%s.%s is public' % (klass.__name__, name)
 

src/p/r/Products.Archetypes-HEAD/Products/Archetypes/utils.py   Products.Archetypes(Download)
from AccessControl import ClassSecurityInfo
from AccessControl import ModuleSecurityInfo
from AccessControl.SecurityInfo import ACCESS_PUBLIC
 
from Acquisition import aq_base, aq_inner, aq_parent
            if name not in security.names:
                print '%s.%s has no security' % (klass.__name__, name)
            elif security.names.get(name) is ACCESS_PUBLIC:
                print '%s.%s is public' % (klass.__name__, name)
 

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