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

Seb Potter seb@getfrank.com
Wed, 21 May 2003 17:52:28 +0100


On Wed, 21 May 2003 22:07:30 +0530, Zope@Stylus <zope@stylusinc.net> wrote:

> Hi all
>
> I am unable to use manage_clone to clone my files into a new folder that 
> I
> am creating.
> I create a new folder in the Zope Directory Structure and then try to 
> clone
> a python Script and a Page Template like
> when I add a folder into the Zope Structure I can also add a Page
> templae(index_html) on the fly.
> I am trying something exactly similar.
> 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.
> This gies against the whole intention of using manage)_clone.
> Where am I going wrong?
> Please help me out.


Are you trying to call the manage_clone method without actually being 
logged in? If so, you'll need to assign a proxy role to the script that 
does this with relevant permissions for calling that method. Otherwise, 
you're attempting this an an unpriveleged anonymous user, and you won't 
have the right permission.

- seb


-- 
Seb Potter
Lead Developer
Getfrank Limited