[Zope] determining Owner of an object?
Cornelis J. de Brabander
brabander@fsw.leidenuniv.nl
Fri, 24 Mar 2000 10:28:14 +0100
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 )
>
>