Re: [Zope] determining Owner of an object?
within the context of an object this might help you: "AUTHENTICATED_USER.has_role('Owner',this())" cb -----Oorspronkelijk bericht----- Van: Chris Withers <chrisw@nipltd.com> Aan: Jonothan Farr <jfarr@real.com> CC: Zope Mailing List <zope@zope.org> Datum: vrijdag 24 maart 2000 11:15 Onderwerp: Re: [Zope] determining Owner of an object?
<dtml-in get_local_roles>
I tried sticking <dtml-var get_local_roles> in a dtml document and got a blank list back even though I know I've got some local roles.
Also, where did you find out about this? I haven't found it documented anywhere...
<dtml-var "AUTHENTICATED_USER.getRoles()"> is also not too useful since it only returns roles where the user object is defined, ie no local roles...
What am I doing wrong?
Chris
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (1)
-
Cornelis J. de Brabander