[Zope] manage_clone and proxy roles
Lee Harr
missive@hotmail.com
Sun, 12 Aug 2001 17:34:43 +0000
Hi:
I have a folder "test" and in the folder "test" there is another folder "f".
I want to have a method (preferably a python method)
which creates a copy of "f" in the folder "test" and I want anyone
to be able to do it (not just managers)
so, I created a python method "c" as:
context.manage_clone(context.test.f, 'f2')
return "done"
which works fine when I am logged in as manager, but throws up a
login dialog when I am not. No problem, I figure, set the proxy
role on "c" to 'Manager' and everything should be cool. Nope.
Hmm. I think maybe this is not possible from python methods, so
I try a dtml-method, as such:
<dtml-call "manage_clone(f, 'f3')">
done
Again, works fine when I am logged in as manager, but even if I
set the proxy role on the method to 'Manager' I get the login
dialog.
I know I should probably be using a Zclass, but this seemed so
simple 4 hours ago that I thought I would just zip it off this
way. ~~Aargh!~~
Thanks for any wisdom!
Lee Harr
missive@hotmail.com
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp