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. What do I need to base-inherit to get complete CopySupport? --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.381 / Virus Database: 214 - Release Date: 2002-08-02
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. What do I need to base-inherit to get complete CopySupport? Usually, "CopySupport" is included in "SimpleItem".
You have a different problem! You must analyse the resulting exceptions/tracebacks, and maybe tell us (if you need help with this)... Dieter
At 11:41 2002-08-17 +0200, Dieter Maurer wrote:
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. What do I need to base-inherit to get complete CopySupport? Usually, "CopySupport" is included in "SimpleItem".
You have a different problem!
You must analyse the resulting exceptions/tracebacks, and maybe tell us (if you need help with this)...
Well then, here's a traceback when I try to paste some objects from one IssueTracker instance to another. ("notifyables" is a folder inside the instance) Traceback (innermost last): File /local/home/peterbe/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, line 150, in publish_module File /local/home/peterbe/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, line 114, in publish File /local/home/peterbe/Zope-2.5.1-src/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook (Object: notifyables) File /local/home/peterbe/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, line 98, in publish File /local/home/peterbe/Zope-2.5.1-src/lib/python/ZPublisher/mapply.py, line 88, in mapply (Object: manage_pasteObjects) File /local/home/peterbe/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, line 39, in call_object (Object: manage_pasteObjects) File /local/home/peterbe/Zope-2.5.1-src/lib/python/OFS/CopySupport.py, line 144, in manage_pasteObjects (Object: notifyables) File /local/home/peterbe/Zope-2.5.1-src/lib/python/OFS/CopySupport.py, line 373, in _verifyObjectPaste (Object: notifyables) Copy Error: (see above) --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.381 / Virus Database: 214 - Release Date: 2002-08-02
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
participants (2)
-
Dieter Maurer -
Peter Bengtsson