[Zope] Re: Role specific access rights for Python scripts

Andreas Tille tillea@rki.de
Tue, 15 Oct 2002 16:26:03 +0200 (CEST)


On Tue, 15 Oct 2002, Andreas Tille wrote:

> I try to set up a user role which is allowed to vie the output of some
> python scripts in a certain folder.  I created a new role and started
> by checking every single checkbox for this role in the "Security"
> tab of the new script.  But if I select the URL of the script I
> get:
>
>     Zope has encountered an error while publishing this resource.
>
>    Error Type: Unauthorized
>    Error Value: You are not allowed to access manage_test in this context

Clarification: The Script did a call to

     rs = context.My_SQL_Method.manage_test()

and this was not allowed for the user in question.  I defined a
Role which is allowed to do this which solved the problem.

Thanks for your attention

          Andreas.