[Zope] CopySupport for my objects

Dieter Maurer dieter@handshake.de
Mon, 19 Aug 2002 21:30:02 +0200


Peter Bengtsson writes:
 > >Peter Bengtsson writes:
 > >  > I have a python product that is defined like this::
 > >  >
 > >  >   class IssueTrackerNotifyable(SimpleItem.SimpleItem, IssueTracker)
 > >  >
 > >  > and the class IssueTracker looks like this::
 > >  >
 > >  >   class IssueTracker(Folder.Folder, CatalogAware, Persistent  )
 > >  >
 > >  >
 > >  > The objects created with IssueTrackerNotifyable work fine as they are 
 > > but I
 > >  > can't copy them and place them elsewhere. Not even in another 
 > > IssueTracker
 > >  > class instance.
 > ....
 > Traceback (innermost last):
 > ...
 >    File /local/home/peterbe/Zope-2.5.1-src/lib/python/OFS/CopySupport.py, 
 > line 373, in _verifyObjectPaste
 >      (Object: notifyables)
 > Copy Error: (see above)
Looking at the code ("CopySupport.py" line 373 and 325) indicates
that "self.all_meta_types" does not contain a meta type specification
for the meta type you try to copy.


Dieter