[Zope-DB] restricted zsql permissions: there must be an easier
way!
Chris Withers
chris at simplistix.co.uk
Thu Jul 22 04:56:51 EDT 2004
Toni Vicens wrote:
> Then I have written a python script with “owner” proxy role with the
> following code:
That should be Manager, not Owner.
> request = container.REQUEST
> user = request.AUTHENTICATED_USER
> regs = container.sql.restricted.my_zsql_method(user_id=user.getUserId())
>
> The problem is that when I call this method from a Page Template I get
> the following error:
> Unauthorized: You are not allowed to access 'attribute1' in this
> context.
I don't see "attribute1" in the code above, where is the code
originating that error?
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
More information about the Zope-DB
mailing list