[Zope] How to get document's owner and last edited by with ZCatalog?
Chris Withers
chrisw@nipltd.com
Wed, 18 Sep 2002 10:53:38 +0100
Jaroslav Lukesh wrote:
>
> I was try with ZCatalog searching and it ignores all real ownerships and
> print it as my own.
That's probably because you own the catalog, and catalog searches return brains
not real objects.
Try this python script:
brains = context.your_catalog(***search params here***)
for brain in brains:
print brain.getURL()
print "owned by:",brain.getObject().owner_info['path']
return printed
cheers,
Chris