[Zope] Re: How to Add a File Dynamically??--manage_clone ERROR

Dieter Maurer dieter@handshake.de
Thu, 22 May 2003 19:57:39 +0200


Zope@Stylus wrote at 2003-5-21 22:07 +0530:
 > ...
 > I am able to use manage_clone in my External Method and use it to Clone a
 > Python Script and a Page template if I am logged into the ZMI but if I am
 > not logged in then i am asked to Log in.

A well known bug in "_verifyObjectPaste".

When you are ready to do any necessary security checking yourself (none,
when you think, there is no need), you can clone object "src"
to destination "dest" by:

   newOb= src._copyOf(dest); newOb._setId(id)
   dest._setObject(id,newOb)


Dieter