[Zope] How to list the attributes of an object?

Tres Seaver tseaver@palladion.com
Fri, 04 Feb 2000 11:54:13 -0600


Robb Shecter wrote:
> 
> Hi,
> 
> Do you know offhand if your method shows proxy roles?

Nope -- proxy roles are attributes of documents/methods, so my "method" object
won't see whether they are present in other methods.

> I'm debugging a problem
> where proxy roles don't seem to be having any effect.  I have to say that I find
> all the various getRole methods confusing.

Heh, failing to understand the ways in which proxy roles, normal roles, local
roles, permission mappings, and acquisition play together is the motivation for
this week's Zope Guru of the Week question.  Jim Fulton (jim@digicool.com) gave
me a hint about the topic at IPC8, but I haven't digested it yet:  he pointed
out that the "real place" of an object, rather than the location into which it
is acquired, drives security.

So, for instance, to use a method acquired from a parent/sibling folder in which
you have no rights (even though you _do_ have them in the folder into which you
acquire it), the _calling_ method/document must have a proxy role.  I have
messed this up at least twice!

> It'd be nice to have a real
> hyperlinked API with all classes, and all their methods explained...

The Zope Quick Reference (ZQR) is a partial stab at that -- see
http://www.zope.org/Members/ZQR.  The Zope Documentation Project (ZDP) has other
types of useful stuff:  http://zdp.zope.org.

Hope this helps!

Tres.
-- 
=========================================================
Tres Seaver         tseaver@palladion.com    713-523-6582
Palladion Software  http://www.palladion.com