[Zope] cloning from a zclass

Dieter Maurer dieter@handshake.de
Wed, 26 Feb 2003 20:18:08 +0100


Jorg E. R=F8dsj=F8 wrote at 2003-2-26 14:13 +0100:
 > I am trying to copy(clone) a DTML-method from a zclass into an instanc=
e of
 > the same class. That is to say i have a Product A, with a zclass B. An=
d in
 > this zclass B a dmtl-method C resides.=20
 >=20
 > In a subfolder in an instance of this zclass D, I want to copy(clone) =
the
 > dtml-method C. So, in a dtml-method inside the instance D, I have the
 > following code:
 >=20
 > context.subfolderName.manage_clone(container.foo,'foo.html')
 >=20
 > But all I get is:=20
 >=20
 > The action against the foo object could not be carried out. One of
 > the following constraints caused the problem:=20

Looking at the code, it looks like your object is not copyable
(i.e. "obj.cb_isCopyable()" returns a false value).


Dieter