Hi, this is exactly what I am looking for. Thanks. And thanks to all the others who supplied valuable information. Now I have some more insight in all this stuff, that I formerly more or less ignored. Best regards, Oliver On Thu, Mar 23, 2000 at 08:00:08AM +0100, Cornelis J. de Brabander wrote:
I may be misunderstanding your question, but if your user is authenticated you can use a construction like: <dtml-in expr="objectValues(['DTML Document', 'File'])" sort=bobobase_modification_time reverse> <dtml-if "AUTHENTICATED_USER.has_role('Owner', this())"> <A HREF="<dtml-var id>"><dtml-var title></A> <dtml-else> <dtml-var title> </dtml-if> </dtml-in>
cb
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Oliver Andrich Sent: woensdag 22 maart 2000 22:42 To: zope@zope.org Subject: [Zope] How do I get the owner of a document?
Hi,
may be I am just to dumb or something like that, but Zope has to now who is the owner of a certain document. This is for sure, but how can I get the owner of a document from DTML or an external method? I read through the sources and maybe I am just to dumb or so to find it, but I can't find any manage_* call, that tells me how to do this?
I have to write a small DTML method, that finds all documents, that are located in a givben hierachie which are owned by a certain user.
Bye and many thanks,
OLiver
P.S.: Don't frustrated that I ask these things again and again, but now I have to deal with things in Zope, that I haven't dealt with before. ;-))))
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )