Hi, I've got a problem with the manage_clone function. I used it several times before, but this time it's something special. Normally you clone an object like this, where 'mydoc' is the the object and 'new_id' the new name of the cloned object: <dtml-call "manage_clone(mydoc, 'new_id')"> In my special case, mydoc is not the object itself, but a string of the objects name. The function now can't clone, because mydoc (the string) is not an object and returns the error message AttributeError: cb_isCopyable So how can I clone an object by calling the manage_clone function with the variable 'mydoc'??? Thanks for help Marc
hi "Breitenreicher, Marc" <Marc.Breitenreicher@friatec.de> wrote:
So how can I clone an object by calling the manage_clone function with the variable 'mydoc'???
try something like this: <dtml-call "manage_clone(_.getattr(ContainerObjectOfMyDoc,MyDoc),'clone_id')"> greetings, maik. -- maik jablonski visit www.zope.org, universitaet bielefeld LET'S GET ZOPED!!!! zentrum fuer lehrerbildung didaktik des sachunterrichts postfach 10 01 31 33501 bielefeld germany tel: + 49 (0) 521 106 4234 http://www.zfl.uni-bielefeld.de/ http://www.sachunterricht-online.de/
Breitenreicher, Marc writes:
So how can I clone an object by calling the manage_clone function with the variable 'mydoc'??? Please read
<http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html> Search for "computed variable access". Dieter
participants (3)
-
Breitenreicher, Marc -
Dieter Maurer -
Maik Jablonski