[Zope] CopySupport for my objects

Peter Bengtsson mail@peterbe.com
Mon, 19 Aug 2002 11:09:35 +0100


--=======1ED339CA=======
Content-Type: text/plain; x-avg-checked=avg-ok-166F4094; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 8bit

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)

--=======1ED339CA=======
Content-Type: text/plain; charset=us-ascii; x-avg=cert; x-avg-checked=avg-ok-166F4094
Content-Disposition: inline


---
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

--=======1ED339CA=======--