[Zope] I cannot copy paste zClass based products

Gilles Lenfant gilles@objectis.net
Tue, 21 May 2002 15:54:42 +0200


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

Otherwise (for a reason I ignore), copy/paste does'nt work in the CMF =
desktop (only in the ZMI) !

----- Original Message -----=20
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:
:=20
: >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.
: >
:=20
: Ok ... thanks.
:=20
: But I have allready refactored my, some 15, classes to Python =
products.=20
: And now I can copy/paste etc. to my hearts content.
:=20
: I used my mxm EasyProduct classes and it took about 1 hour pr. class. =
I=20
: strongly suspect that it will save me a lot more time in the long run.
:=20
: And it's so nice. No more external methods, and python scripts in=20
: different "files". Having it all in one class makes it so much more =
easy.
:=20
: Death to ZClasses!
:=20
: regards Max M
:=20
:=20
:=20
: _______________________________________________
: Zope maillist  -  Zope@zope.org
: http://lists.zope.org/mailman/listinfo/zope
: **   No cross posts or HTML encoding!  **
: (Related lists -=20
:  http://lists.zope.org/mailman/listinfo/zope-announce
:  http://lists.zope.org/mailman/listinfo/zope-dev )
:=20