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

All Samples(9)  |  Call(0)  |  Derive(5)  |  Import(4)
Standard ExtensionClass base type

src/z/o/Zope2-2.13.22/src/OFS/owner.py   Zope2(Download)
 
from AccessControl.class_init import InitializeClass
from AccessControl.owner import Owned as BaseOwned
from AccessControl.owner import ownableFilter
from AccessControl.owner import UnownableOwner
class Owned(BaseOwned):
 
    security = ClassSecurityInfo()
    security.setPermissionDefault(take_ownership, ('Owner', ))
 

src/z/o/Zope-HEAD/src/OFS/owner.py   Zope(Download)
 
from AccessControl.class_init import InitializeClass
from AccessControl.owner import Owned as BaseOwned
from AccessControl.owner import ownableFilter
from AccessControl.owner import UnownableOwner
class Owned(BaseOwned):
 
    security = ClassSecurityInfo()
    security.setPermissionDefault(take_ownership, ('Owner', ))
 

src/a/c/AccessControl-3.0.8/src/AccessControl/tests/testOwned.py   AccessControl(Download)
from Acquisition import Implicit, aq_inner
 
from AccessControl.owner import Owned
 
 
class Folder(Implicit, Persistent, Owned):
 
    def __init__(self, id):
        self.id = id
        self.names = set()
        class Dummy(Implicit, Owned):
            pass
 
        return Dummy(*args, **kw)
 
    def test_changeOwnership_recursive_objectValues_acquisition(self):
        # See https://bugs.launchpad.net/bugs/143403
        from AccessControl.owner import Owned
        class FauxContent(Implicit, Owned):
            pass