[Zope] Re: manager can, proxy role manager cannot
Oliver Bleutgen
myzope@gmx.net
Fri, 10 Jan 2003 15:10:37 +0100
Lee Harr wrote:
>>> I have a script which wants to create a new folder object in a
>>> folder which is only viewable and accessible to manager role.
>>
>> [snip]...
>>
>>> When I access this script, even though I have set it to
>>> proxy as manager, I get the login/password box.
>>> If I go ahead and put in my username & password, it works.
>>
>>
>> Have you set the 'View' permission for the script accessible by
>> anonymous ?
>
>
>
> Yes, the script is in a folder in which all objects are
> 'View'able anonymously. Just to test, though, I set the
> View permission to Anonymous, and still no go.
>
> If I cancel out of the login box, this is the end of the error
> message:
>
>
> File
> /usr/local/www/Zope/lib/python/Products/PythonScripts/PythonScript.py,
> line 363, in _exec
> (Object: add2)
> (Info: ({'script': <PythonScript instance at 8dba9c0>, 'context':
> <Folder instance at 8dab620>, 'container': <Folder instance at 8dab620>,
> 'traverse_subpath': []}, (), {}, None))
> File Script (Python), line 7, in add2
> (Object: guarded_getattr)
> File /usr/local/www/Zope/lib/python/OFS/CopySupport.py, line 334, in
> manage_clone
> (Object: people)
> File /usr/local/www/Zope/lib/python/OFS/CopySupport.py, line 415, in
> _verifyObjectPaste
> (Object: people)
> Unauthorized: Add Folders
I have a vague memory about something like that. Mmmmh, maybe try to
give this script also the proxy-role of owner.
HTH,
oliver