Hello, I tried the example from the book [exhibit=anotherFolder.manage_clone(thisFolder.ThreadMuster,'name')], slightly changed. I 'd like to copy the cloned_object to another folder. But Zope 2.3.2 gives a name error . He can't find anotherFolder. In DTML almost the same is working. -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net GMX Tipp: Machen Sie Ihr Hobby zu Geld bei unserem Partner 1&1! http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a
salvadorindali@gmx.de writes:
I tried the example from the book [exhibit=anotherFolder.manage_clone(thisFolder.ThreadMuster,'name')], slightly changed. I 'd like to copy the cloned_object to another folder. But Zope 2.3.2 gives a name error . He can't find anotherFolder. In DTML almost the same is working. In DTML, you have the namespace magic that automatically resolves name to objects.
In Python Scripts, you do not have this magic, just the local namespace of the function. Use "context.anotherFolder" rather than "anotherFolder". Dieter
participants (2)
-
Dieter Maurer -
salvadorindaliï¼ gmx.de