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

All Samples(82)  |  Call(82)  |  Derive(0)  |  Import(0)
Declare default attribute access policy.

This should be a boolean value, a map of attribute names to
booleans, or a callable (name, value) -> boolean.

src/e/r/erp5-HEAD/product/MailTemplates/tests/test_FSMailTemplate.py   erp5(Download)
 
        security.declareObjectPublic()
        security.setDefaultAccess('allow')
 
        security.declarePublic('getUserName')
 
        security.declareObjectPublic()
        security.setDefaultAccess('allow')
 
        security.declarePublic('listMembers')

src/p/r/Products.MailTemplates-2.0.0/Products/MailTemplates/tests/test_FSMailTemplate.py   Products.MailTemplates(Download)
 
        security.declareObjectPublic()
        security.setDefaultAccess('allow')
 
        security.declarePublic('getUserName')
 
        security.declareObjectPublic()
        security.setDefaultAccess('allow')
 
        security.declarePublic('listMembers')

src/z/o/Zope2-2.13.22/src/OFS/tests/testAcquisition.py   Zope2(Download)
class AllowedItem(SimpleItem):
    id = 'allowed'
    security = ClassSecurityInfo()
    security.setDefaultAccess('allow')
 
class DeniedItem(SimpleItem):
    id = 'denied'
    security = ClassSecurityInfo()
    security.setDefaultAccess('deny')
 

src/z/o/Zope-HEAD/src/OFS/tests/testAcquisition.py   Zope(Download)
class AllowedItem(SimpleItem):
    id = 'allowed'
    security = ClassSecurityInfo()
    security.setDefaultAccess('allow')
 
class DeniedItem(SimpleItem):
    id = 'denied'
    security = ClassSecurityInfo()
    security.setDefaultAccess('deny')
 

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/tests/testRestrictedAcquisition.py   Products.CMFPlone(Download)
class AllowedItem(SimpleItem):
    id = 'allowed'
    security = ClassSecurityInfo()
    security.setDefaultAccess('allow')
 
class DeniedItem(SimpleItem):
    id = 'denied'
    security = ClassSecurityInfo()
    security.setDefaultAccess('deny')
 

src/p/r/Products.ATContentTypes-2.2.1/Products/ATContentTypes/tests/utils.py   Products.ATContentTypes(Download)
class FakeRequestSession(ExtensionClass.Base, UserDict):
    """Dummy dict like object with set method for SESSION and REQUEST
    """
    security = ClassSecurityInfo()
    security.setDefaultAccess('allow')

src/p/r/Products.CMFPlone-5.0a2/Products/CMFPlone/tests/testRestrictedAcquisition.py   Products.CMFPlone(Download)
class AllowedItem(SimpleItem):
    id = 'allowed'
    security = ClassSecurityInfo()
    security.setDefaultAccess('allow')
 
class DeniedItem(SimpleItem):
    id = 'denied'
    security = ClassSecurityInfo()
    security.setDefaultAccess('deny')
 

Previous  1 | 2 | 3 | 4 | 5