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

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

        def ownerInfo(user, getattr=getattr):
    if user is None:
        return None
    uid=user.getId()
    if uid is None: return uid
    db=aq_parent(aq_inner(user))
    path=[absattr(db.id)]
    root=db.getPhysicalRoot()
    while 1:
        db=getattr(db,'aq_inner', None)
        if db is None: break
        db=aq_parent(db)
        if db is root: break
        id=db.id
        if not isinstance(id, str):
            try: id=id()
            except: id=str(id)
        path.append(id)

    path.reverse()

    return path, uid
        


src/z/o/Zope2-2.13.22/src/webdav/LockItem.py   Zope2(Download)
 
from AccessControl.class_init import InitializeClass
from AccessControl.owner import ownerInfo
from AccessControl.SecurityInfo import ClassSecurityInfo
from Persistence import Persistent
        # AccessControl.owner.ownerInfo returns the id of the creator
        # and the path to the UserFolder they're defined in
        self._creator = ownerInfo(creator)
 
        self._owner = owner

src/z/o/Zope-HEAD/src/webdav/LockItem.py   Zope(Download)
 
from AccessControl.class_init import InitializeClass
from AccessControl.owner import ownerInfo
from AccessControl.SecurityInfo import ClassSecurityInfo
from Persistence import Persistent
        # AccessControl.owner.ownerInfo returns the id of the creator
        # and the path to the UserFolder they're defined in
        self._creator = ownerInfo(creator)
 
        self._owner = owner

src/c/o/collective.upgrade-1.0/src/collective/upgrade/pas.py   collective.upgrade(Download)
                        source_principal.getId(), group)
 
        acl_users_path = owner.ownerInfo(self.plugins)[0]
 
        def import_ofs_obj(obj, path=None,

src/c/o/collective.upgrade-HEAD/src/collective/upgrade/pas.py   collective.upgrade(Download)
                        source_principal.getId(), group)
 
        acl_users_path = owner.ownerInfo(self.plugins)[0]
 
        def import_ofs_obj(obj, path=None,