[Zope] determining Owner of an object?

Jonothan Farr jfarr@real.com
Fri, 24 Mar 2000 02:02:10 -0800


> 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.

Hmm. That's not what happens for me. I get something like:

[('admin', ['Owner'])]

How do you know you've got some local roles? Also, is this a DTML document or
DTML method, because methods seem to acquire the roles from their container.

> Also, where did you find out about this? I haven't found it documented
anywhere...

It's all in AccessControl/Role.py.

IMO the documentation is just a good place to figure out where to start reading
the code. ;)

-jfarr