[Zope] Finding owner of an object

Tom Emerson tree@basistech.com
Tue, 4 Mar 2003 00:13:39 -0500


Greetings,

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?

TIA,

    -tree

-- 
Tom Emerson                                          Basis Technology Corp.
Software Architect                                 http://www.basistech.com
  "Beware the lollipop of mediocrity: lick it once and you suck forever"