On Fri, 2007-09-07 at 19:54 -0500, Héctor Velarde wrote:
> probably putting a proxy on the script means more than just adding
> "self.setRoles(['Manager', 'Member'])" so I also tried replacing that
> with "self.folder.archiveItem.manage_proxy(roles=('Manager',))" and that
> raises an "AttributeError: manage_proxy" error. do scripts on "skins"
> have the same permissions?
>
> sorry for this, but I'm not an expert on the topic.
No worries, I'm no expert either :) it's folks helping me that
thankfully allows me to answer this question :) I should have been more
explicit over the whole process from the start ..
> do I have to do something else?
I tend to do this with a .metadata file, where your issue will come
about is that the script is still running under the user privileges, and
they won't have the permissions to manage the proxies either as the
script is trying to do.
for example, in the filesystem :
archiveItem.py.metadata
[Default]
title:string=Archive Item
proxy=Manager
Hope that helps!
Dave
--
NetAxxs
20 Chisholm St
Wangaratta 3677
Australia
+613 5722 9622
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers