[Zope] ZClass proxy roles - don't work?
Wade Leftwich
wade@lightlink.com
Fri, 2 Aug 2002 20:49:08 -0400
On Friday 02 August 2002 17:14, Dieter Maurer wrote:
> Wade Leftwich writes:
> > I have a Product that contains several nested ZClasses. I'm trying to
> > allow an anonymous user (actually a Xron object) to call a method on an
> > inner class that will modify some object attributes. I have given the
> > method a proxy role of Manager, but calling it still raises a login
> > prompt. If I don't log in, I get 'not authorized to
> > manage_changeProperties'.
>
> You know, that a proxy role affects only the code executed directly
> in the executable. It has no effect in calls done in the executable:
> proxy roles are not inherited by the callee.
>
>
> Dieter
No, I didn't know that. In fact, I guess I had the opposite so firmly lodged
in my mind that I didn't even try assigning proxy roles to called methods.
How embarrassing.
Thanks Dieter.
-- Wade