[Zope] I cannot copy paste zClass based products

Janko Hauser jh@comunit.de
Tue, 21 May 2002 14:47:33 +0200


On Tue, 07 May 2002 14:02:59 +0200
Max M <maxm@mxm.dk> wrote:

> I have an application where some of my Products are Python based and
> others are zClasses. 
> 
> As far as I remember it was possible to copy paste the zClass based
> objects when I first wrote the app.
> 
> But somewhere along my upgrades I seem to have lost the ability to
> copy/paste those objects.
> 
> My Python based products can be copied nicely.
> 
> Has anybody got an idea as to why ???
There is a specific method overwritten from ObjectManager in ZClass.py

search for cb_isCopyable in lib/python/ZClasses/ZClass.py
Don't know the reason and when this was added.

__Janko
> 
> 
> regards Max M
> 
> 
> ---------------------------------------
> 
> 
> Error: "The object /ProjektNet/ does not support this operation"
> 
> 
> 
> 
> Traceback (innermost last):
>   File C:\zope\zope251\lib\python\ZPublisher\Publish.py, line 150,
>   in publish_module File
>   C:\zope\zope251\lib\python\ZPublisher\Publish.py, line 114, in
>   publish File C:\zope\zope251\lib\python\Zope\__init__.py, line
>   159, in zpublisher_exception_hook  (Object: 2_semester)
>   File C:\zope\zope251\lib\python\ZPublisher\Publish.py, line 98, in
>   publish File C:\zope\zope251\lib\python\ZPublisher\mapply.py, line
>   88, in mapply  (Object: manage_pasteObjects)
>   File C:\zope\zope251\lib\python\ZPublisher\Publish.py, line 39, in
>   call_object  (Object: manage_pasteObjects)
>   File C:\zope\zope251\lib\python\OFS\CopySupport.py, line 144, in
>   manage_pasteObjects  (Object: 2_semester)
>   File C:\zope\zope251\lib\python\OFS\CopySupport.py, line 373, in
>   _verifyObjectPaste  (Object: 2_semester)
> Copy Error: (see above)
> 
> RoboVenture
> 
> ProjektNet
> 
> Undervisere
> 
> Kursusplan
> 
> Emner
> 
> Materiale
> 
> Diskussion
> 
> Kursister
> 
> Skema
> 
> Undervisere
> 
> Kursusplan
> 
> Emner
> 
> Materiale
> 
> Diskussion
> 
> Kursister
> 
> Skema
> 
> Evaluering
> 
> Max M 1
> 
> Undervisere
> 
> Kursusplan
> 
> Kursister
> 
> 
> 


-- 
i.A. Dr. Janko Hauser
Software Engineering
c o m . u n i t   G m b H
online-schmiede seit 1994

http://www.comunit.de/	mailto:jh@comunit.de
Eiffestr. 598		20537 Hamburg | Germany
Fon 040 | 21 11 05 25	Fax  040 | 21 11 05 26