Package AccessControl :: Module Owned :: Class Owned
[show private | hide private]
[frames | no frames]

Type Owned

object --+    
         |    
      Base --+
             |
            Owned

Known Subclasses:
Item, ZItem, ZItem

Standard ExtensionClass base type
Method Summary
  changeOwnership(self, user, recursive)
Change the ownership to the given user.
  getOwner(self, info, aq_get, UnownableOwner, getSecurityManager)
Get the owner
  getOwnerTuple(self)
Return a tuple, (userdb_path, user_id) for the owner.
  getWrappedOwner(self)
Get the owner, modestly wrapped in the user folder.
  manage_fixupOwnershipAfterAdd(self)
  owner_info(self)
Get ownership info for display
  userCanTakeOwnership(self)
Inherited from Base: __getattribute__, __getnewargs__, __getstate__, __new__, __reduce__, __setstate__
Inherited from object: __init__, __delattr__, __hash__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variable Summary
tuple __ac_permissions__ = (('View management screens', ('mana...
Implements __implemented__ = <implementedBy AccessControl.Owned.Own...
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
tuple changeOwnership__roles__ = ()
tuple getOwner__roles__ = ()
tuple getOwnerTuple__roles__ = ()
tuple getWrappedOwner__roles__ = ()
PermissionRole manage_changeOwnershipType__roles__ = <PermissionRole ob...
tuple manage_fixupOwnershipAfterAdd__roles__ = ('Manager',)
tuple manage_options = ({'action': 'manage_owner', 'filter': <...
DTMLFile manage_owner = <App.special_dtml.DTMLFile object at 0x13...
PermissionRole manage_owner__roles__ = <PermissionRole object at 0xf410...
PermissionRole manage_takeOwnership__roles__ = <PermissionRole object a...
PermissionRole owner_info__roles__ = <PermissionRole object at 0xf410>

Method Details

changeOwnership(self, user, recursive=0)

Change the ownership to the given user.

If 'recursive' is true then also take ownership of all sub-objects, otherwise sub-objects retain their ownership information.

getOwner(self, info=0, aq_get=<built-in function aq_get>, UnownableOwner=[], getSecurityManager=<function getSecurityManager at 0x11f4970>)

Get the owner

If a true argument is provided, then only the owner path and id are returned. Otherwise, the owner object is returned.

getOwnerTuple(self)

Return a tuple, (userdb_path, user_id) for the owner.

o Ownership can be acquired, but only from the containment path.

o If unowned, return None.

getWrappedOwner(self)

Get the owner, modestly wrapped in the user folder.

o If the object is not owned, return None.

o If the owner's user database doesn't exist, return Nobody.

o If the owner ID does not exist in the user database, return Nobody.

owner_info(self)

Get ownership info for display

Class Variable Details

__ac_permissions__

Type:
tuple
Value:
(('View management screens', ('manage_owner', 'owner_info')),
 ('Take ownership',
  ('manage_takeOwnership', 'manage_changeOwnershipType'),
  ('Owner',)))                                                         

__implemented__

Type:
Implements
Value:
<implementedBy AccessControl.Owned.Owned>                              

__providedBy__

Type:
ClassProvides
Value:
<zope.interface.declarations.ClassProvides object at 0x1569c30>        

__provides__

Type:
ClassProvides
Value:
<zope.interface.declarations.ClassProvides object at 0x1569c30>        

changeOwnership__roles__

Type:
tuple
Value:
()                                                                     

getOwner__roles__

Type:
tuple
Value:
()                                                                     

getOwnerTuple__roles__

Type:
tuple
Value:
()                                                                     

getWrappedOwner__roles__

Type:
tuple
Value:
()                                                                     

manage_changeOwnershipType__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xf428>                                      

manage_fixupOwnershipAfterAdd__roles__

Type:
tuple
Value:
('Manager',)                                                           

manage_options

Type:
tuple
Value:
({'action': 'manage_owner',
  'filter': <function ownableFilter at 0x13a77f0>,
  'help': ('OFSP', 'Ownership.stx'),
  'label': 'Ownership'},)                                              

manage_owner

Type:
DTMLFile
Value:
<App.special_dtml.DTMLFile object at 0x13ac150>                        

manage_owner__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xf410>                                      

manage_takeOwnership__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xf428>                                      

owner_info__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xf410>                                      

Generated by Epydoc 2.1 on Thu Aug 16 09:55:10 2007 http://epydoc.sf.net