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

All Samples(631)  |  Call(348)  |  Derive(0)  |  Import(283)
Encapsulate security information for class objects.

src/b/i/bika.lims-3.01a/bika/lims/content/samplecondition.py   bika.lims(Download)
from AccessControl.SecurityInfo import ClassSecurityInfo
from Products.Archetypes.public import BaseFolder
from Products.Archetypes.public import DisplayList
from Products.Archetypes.public import Schema
from Products.Archetypes.public import registerType
class SampleCondition(BaseFolder):
    security = ClassSecurityInfo()
    displayContentsTab = False
    schema = schema
 

src/b/i/Bika-LIMS-HEAD/bika/lims/content/samplecondition.py   Bika-LIMS(Download)
from AccessControl.SecurityInfo import ClassSecurityInfo
from Products.Archetypes.public import BaseFolder
from Products.Archetypes.public import DisplayList
from Products.Archetypes.public import Schema
from Products.Archetypes.public import registerType
class SampleCondition(BaseFolder):
    security = ClassSecurityInfo()
    displayContentsTab = False
    schema = schema
 

src/a/c/AccessControl-3.0.8/src/AccessControl/__init__.py   AccessControl(Download)
from AccessControl.SecurityManagement import getSecurityManager
from AccessControl.SecurityManagement import setSecurityPolicy
from AccessControl.SecurityInfo import ClassSecurityInfo
from AccessControl.SecurityInfo import ModuleSecurityInfo
from AccessControl.SecurityInfo import ACCESS_PRIVATE

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
  _classDict= None
 
  _secInfo= ClassSecurityInfo()
  _secInfo.declarePublic(
    'ObjToDoc__', 'DocType__', 'DocMethodRe__', 'Path', 'Title',
  """
 
  _secInfo= ClassSecurityInfo()
  _secInfo.declarePublic('__getitem__','__len__','tpValues', 'tpId',
                         'Name', 'Doc', 'Module','Comment', 'FullName',
  """
 
  _secInfo= ClassSecurityInfo()
  _secInfo.declarePublic('tpValues', 'tpId',
                         'Name', 'Roles', 'Args', 'Doc', 'Type', 'DocOrType',

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/utils.py   Products.CMFCore(Download)
from AccessControl.PermissionRole import rolesForPermissionOn
from AccessControl.Role import gather_permissions
from AccessControl.SecurityInfo import ClassSecurityInfo
from AccessControl.SecurityInfo import ModuleSecurityInfo
from AccessControl.SecurityManagement import getSecurityManager
 
 
    security = ClassSecurityInfo()
    security.declarePrivate('manage_addProperty')
    security.declarePrivate('manage_delProperties')
    __name__ = 'toolinit'
 
    security = ClassSecurityInfo()
    security.declareObjectPrivate()     # equivalent of __roles__ = ()
 
    __name__ = 'contentinit'
 
    security = ClassSecurityInfo()
    security.declareObjectPrivate()
 

src/z/o/Zope2-2.13.22/src/Products/ZReST/ZReST.py   Zope2(Download)
 
from AccessControl.class_init import InitializeClass
from AccessControl.SecurityInfo import ClassSecurityInfo
from AccessControl.SecurityInfo import ModuleSecurityInfo
from Acquisition import Implicit
    '''
    meta_type =  'ReStructuredText Document'
    security = ClassSecurityInfo()
    _v_formatted = _v_warnings = None
 

src/z/o/Zope-HEAD/src/OFS/misc_.py   Zope(Download)
 
from AccessControl.class_init import InitializeClass
from AccessControl.SecurityInfo import ClassSecurityInfo
import App
from App.ImageFile import ImageFile
 
 
class misc_:
    "Miscellaneous product information"
    security = ClassSecurityInfo()
class p_:
    "Shared system information"
    security = ClassSecurityInfo()
    security.declareObjectPublic()
 
class Misc_:
    "Miscellaneous product information"
    security = ClassSecurityInfo()
    security.declareObjectPublic()
 

src/z/o/Zope2-2.13.22/src/OFS/misc_.py   Zope2(Download)
 
from AccessControl.class_init import InitializeClass
from AccessControl.SecurityInfo import ClassSecurityInfo
import App
from App.ImageFile import ImageFile
class misc_:
    "Miscellaneous product information"
    security = ClassSecurityInfo()
    security.declareObjectPublic()
 
class p_:
    "Shared system information"
    security = ClassSecurityInfo()
    security.declareObjectPublic()
 
class Misc_:
    "Miscellaneous product information"
    security = ClassSecurityInfo()
    security.declareObjectPublic()
 

src/z/o/Zope2-2.13.22/src/Shared/DC/Scripts/Script.py   Zope2(Download)
from AccessControl.class_init import InitializeClass
from AccessControl.Permissions import view_management_screens
from AccessControl.SecurityInfo import ClassSecurityInfo
from App.special_dtml import DTMLFile
from DocumentTemplate.DT_Util import TemplateDict
class Script(SimpleItem, BindingsUI):
    """Web-callable script mixin
    """
 
    security = ClassSecurityInfo()

src/z/o/Zope2-2.13.22/src/Shared/DC/Scripts/BindingsUI.py   Zope2(Download)
from AccessControl.class_init import InitializeClass
from AccessControl.Permissions import view_management_screens
from AccessControl.SecurityInfo import ClassSecurityInfo
from App.special_dtml import DTMLFile
from Shared.DC.Scripts.Bindings import Bindings
 
class BindingsUI(Bindings):
 
    security = ClassSecurityInfo()

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next