[Zope] How to get document's owner and last edited by with ZCatalog?

Jaroslav Lukesh lsh@wo.cz
Wed, 18 Sep 2002 18:19:14 +0200


| Odes=EDlatel: Chris Withers <chrisw@nipltd.com>
| Jaroslav Lukesh wrote:
| >=20
| > I was try with ZCatalog searching and it ignores all real ownerships
and
| > print it as my own.
|=20
| That's probably because you own the catalog, and catalog searches retur=
n
brains=20
| not real objects.
|=20
| Try this python script:
|=20
| brains =3D context.your_catalog(***search params here***)
| for brain in brains:
|    print brain.getURL()
|    print "owned by:",brain.getObject().owner_info['path']
| return printed

Thanks for script, I will try it because in DTML it is very
ssssssllllloooowwwwww. At least on my "workstation" P-233mmx/win95.

Regards JL.