I cannot copy paste zClass based products
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 ??? 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
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
Janko Hauser wrote:
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.
Ok ... thanks. But I have allready refactored my, some 15, classes to Python products. And now I can copy/paste etc. to my hearts content. I used my mxm EasyProduct classes and it took about 1 hour pr. class. I strongly suspect that it will save me a lot more time in the long run. And it's so nice. No more external methods, and python scripts in different "files". Having it all in one class makes it so much more easy. Death to ZClasses! regards Max M
Python products and ZClass based products have theit own qualities and problems. Personally, I make Python products that deal with "complex" and/or "unsecure" logic, then I make ZClass based subclasses for rendering rules. For the copy/paste problem, you should check if one of the methods of your ZClass overrides the ones involved when copy and paste. BTW. If you're making ZCLasses for making CMF content objects, you should subclass (in that order) : ZObject, _ZClass_for_DefaultDublinCoreImpl, _ZClass_for_PortalContent, _ZClass_for_Document Otherwise (for a reason I ignore), copy/paste does'nt work in the CMF desktop (only in the ZMI) ! ----- Original Message ----- From: "Max M" <maxm@mxm.dk> To: "Janko Hauser" <jh@comunit.de> Cc: <zope@zope.org> Sent: Tuesday, May 21, 2002 3:26 PM Subject: Re: [Zope] I cannot copy paste zClass based products : Janko Hauser wrote: : : >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. : > : : Ok ... thanks. : : But I have allready refactored my, some 15, classes to Python products. : And now I can copy/paste etc. to my hearts content. : : I used my mxm EasyProduct classes and it took about 1 hour pr. class. I : strongly suspect that it will save me a lot more time in the long run. : : And it's so nice. No more external methods, and python scripts in : different "files". Having it all in one class makes it so much more easy. : : Death to ZClasses! : : regards Max M : : : : _______________________________________________ : Zope maillist - Zope@zope.org : http://lists.zope.org/mailman/listinfo/zope : ** No cross posts or HTML encoding! ** : (Related lists - : http://lists.zope.org/mailman/listinfo/zope-announce : http://lists.zope.org/mailman/listinfo/zope-dev ) :
participants (3)
-
Gilles Lenfant -
Janko Hauser -
Max M