Package OFS :: Module CopySupport :: Class CopySource
[show private | hide private]
[frames | no frames]

Type CopySource

object --+    
         |    
      Base --+
             |
            CopySource

Known Subclasses:
Item, ZItem, ZItem

Interface for objects which allow themselves to be copied.
Method Summary
  cb_isCopyable(self)
  cb_isMoveable(self)
  cb_userHasCopyOrMovePermission(self)
  _canCopy(self, op)
Called to make sure this object is copyable.
  _getCopy(self, container)
  _notifyOfCopyTo(self, container, op)
Overide this to be pickly about where you go!
  _postCopy(self, container, op)
  _setId(self, id)
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__ = (('Copy or Move', (), ('Anonymous',...
Implements __implemented__ = <implementedBy OFS.CopySupport.CopySou...
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...

Method Details

_canCopy(self, op=0)

Called to make sure this object is copyable.

The op var is 0 for a copy, 1 for a move.

_notifyOfCopyTo(self, container, op=0)

Overide this to be pickly about where you go!

If you dont want to go there, raise an exception. The op variable is 0 for a copy, 1 for a move.

Class Variable Details

__ac_permissions__

Type:
tuple
Value:
(('Copy or Move', (), ('Anonymous', 'Manager')),)                      

__implemented__

Type:
Implements
Value:
<implementedBy OFS.CopySupport.CopySource>                             

__providedBy__

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

__provides__

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

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