[Zope] Finding owner of an object

Dieter Maurer dieter@handshake.de
Tue, 4 Mar 2003 19:58:52 +0100


Tom Emerson wrote at 2003-3-4 00:13 -0500:
 > I have a folder of files (think the FileLibrary example), where files
 > may be owned by different people. In a ZPT I would like to limit the
 > set of files that are displayed to those owned by the current user. I
 > can't find a way to get the owner of a given object: what am I
 > missing?
 > 
 > For example, I use
 > 
 > container.Submissions.objectValues('File')
 > 
 > to get the set of files in the Submissions folder. Is there a method I
 > can call on each File object to get its owner?

You can do it in the management interface (ZMI), right?

  Then, there is a method and you can find it out yourself
  by looking at the ZMI source.


Dieter