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

All Samples(81)  |  Call(49)  |  Derive(0)  |  Import(32)
Allow a class and all of its methods to be used from a
restricted Script.  The argument Class must be a class.

        def allow_class(Class):
    """Allow a class and all of its methods to be used from a
    restricted Script.  The argument Class must be a class."""
    Class._security = sec = ClassSecurityInfo()
    sec.declareObjectPublic()
    sec.setDefaultAccess(1)
    sec.apply(Class)
    InitializeClass(Class)
        


src/e/n/enslyon.existda-1.6/enslyon/existda/__init__.py   enslyon.existda(Download)
 
import eXistDAresult
from AccessControl import allow_class
allow_class(eXistDAresult.eXistDAresult)
allow_class(eXistDAresult.eXistDAresultsSet)

src/b/e/betahaus.memberprofile-0.2rc1/betahaus/memberprofile/utilities.py   betahaus.memberprofile(Download)
from zope.interface import implements
from zope.event import notify
from AccessControl import ModuleSecurityInfo, allow_module, allow_class
from Products.Archetypes.event import ObjectInitializedEvent
from Products.Archetypes.utils import shasattr
 
ModuleSecurityInfo('betahaus.memberprofile.utilities').declarePublic('profileutils')
allow_class(profileutils)
 

src/p/r/Products.Ploneboard-3.5/src/Products/Ploneboard/__init__.py   Products.Ploneboard(Download)
 
 
    from AccessControl import allow_class      
    from batch import Batch
    allow_class(Batch)

src/p/r/Products.Ploneboard-HEAD/src/Products/Ploneboard/__init__.py   Products.Ploneboard(Download)
 
 
    from AccessControl import allow_class      
    from batch import Batch
    allow_class(Batch)

src/k/s/kss.core-1.6.5/kss/core/pluginregistry/commandset.py   kss.core(Download)
    else:
        # Allow TTW to use commandsets
        from AccessControl import allow_class
        allow_class(class_)
 

src/c/o/collective.langMailHost-0.3.5/collective/langMailHost/interfaces.py   collective.langMailHost(Download)
from zope.interface import Interface
from AccessControl import allow_class
 
class ILangCharset(Interface):
    def lang_charset():
        """Returns charset from the language."""
 
allow_class(ILangCharset)
 

src/c/o/collective.tablepage-0.8a1/collective/tablepage/storage/contentstorage.py   collective.tablepage(Download)
# -*- coding: utf-8 -*-
 
from AccessControl import allow_class
from persistent.list import PersistentList
from persistent.dict import PersistentDict
            pass
 
allow_class(DataStorage)
 

src/e/r/erp5-HEAD/product/ERP5Type/patches/Restricted.py   erp5(Download)
OrderedDict.__allow_access_to_unprotected_subobjects__ = 1
 
from AccessControl import allow_module, allow_class, allow_type
from AccessControl import ModuleSecurityInfo
 

src/a/r/arecibo-HEAD/clients/plone/clearwind.arecibo/clearwind/arecibo/__init__.py   arecibo(Download)
from AccessControl import allow_module, allow_class, allow_type
from AccessControl import ModuleSecurityInfo, ClassSecurityInfo
 
ModuleSecurityInfo('clearwind.arecibo.wrapper').declarePublic('arecibo')
 

src/c/l/clearwind.arecibo-0.7/clearwind/arecibo/__init__.py   clearwind.arecibo(Download)
from AccessControl import allow_module, allow_class, allow_type
from AccessControl import ModuleSecurityInfo, ClassSecurityInfo
 
ModuleSecurityInfo('clearwind.arecibo.wrapper').declarePublic('arecibo')
 

Previous  1 | 2 | 3 | 4  Next