[Zope] Zope Gurus: this is a tricky one, _please_ help

Heiko Stoermer heiko@mig.net
Thu, 26 Aug 1999 18:48:35 +0200


No one has yet been able to help me in this matter...

I need to copy an object into the current folder via manage_clone or whatever other method there is.

The problem is that the object cannot be reached by acquisition, because it resides in some other folder:

/__zope
         |_____folder
         |          |_____object1
         |          |_____object2
         |          |_____object3
         |
         |_____current_folder

It would be ease to simply call
"manage_clone(folder.object1,'newname',REQUEST)" of course, but the
selected object comes from a list in a DTML form and thus the ID cannot
be hardcoded. The user selects an ID from the list, hits a button and
the next DTML Document is supposed to clone the selected object into the
current directory.

If I put something like
"manage_clone(REQUEST['input'],'newname',REQUEST)" I get an error:
-> Error Type: AttributeError
-> Error Value: 'string' object has no attribute 'cb_isCopyable'

I tried all kinds of variations for the first parameter of manage_clone,
and it works if the desired object can be called by acquisition (e.g. if
it's in the root folder), but as soon as the object is in a subfolder,
everything breaks.

Please help me, I urgently need this feature in my appliction - and time
runs out.
;-)

Thanks so far,
Heiko.

P.S.: yes, I also tried copy and paste, but the pasteObjects() bailed,
too.

--
Heiko Stoermer
MIG Augsburg