[Zope] How to get document's owner and last edited by with ZCatalog?
Jaroslav Lukesh
lsh@wo.cz
Tue, 17 Sep 2002 21:38:53 +0200
Hi all,
I am very sorry for that easy question.
<dtml-if owner_info><dtml-with
owner_info mapping>owned by &dtml-id; (&dtml-path;).</dtml-with
><dtml-else>unowned.</dtml-if>
I was try with ZCatalog searching and it ignores all real ownerships and
print it as my own.
I was try to play with "zaprdek.owner_info()['id']" but it gives me error
with ZCatalog question like that:
<dtml-in "zaprdek(bobobase_modification_time=_.DateTime() - 30,
bobobase_modification_time_usage='range:max')"
sort=bobobase_modification_time reverse>
<dtml-var bobobase_modification_time fmt="%d-%m-%y %H:%M">
<a href="&dtml-getURL;/manage">
<dtml-var "zaprdek.getpath(data_record_id_)"></a>
<dtml-if owner_info><dtml-with owner_info mapping>
<dtml-id> (<dtml-path>).</dtml-with><dtml-else> unowned.</dtml-if>
<br>
</dtml-in>
Many thanks for your help.
Sincerelly, J. Lukesh