Hello all, Has anyone found an easy way to display the name of the last user to modify a dtml document/method? On certain pages I would like to display who last modified it with the date and time. It would essentially be the last record on the undo page. Any ideas? -Chris ------------------------------ Chris Kratz chris.kratz@vistashare.com
e.g. <dtml-var bobo_modification_date fmt="%Y-%m-%d"> Andreas ----- Original Message ----- From: "Chris Kratz" <chris.kratz@vistashare.com> To: <zope@zope.org> Sent: Monday, October 08, 2001 13:39 Subject: [Zope] modified by...
Hello all,
Has anyone found an easy way to display the name of the last user to modify a dtml document/method? On certain pages I would like to display who last modified it with the date and time. It would essentially be the last record on the undo page. Any ideas?
-Chris ------------------------------ Chris Kratz chris.kratz@vistashare.com
_______________________________________________ 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 )
Thank you Andreas, but I am looking for the user name of the user that last modified a document. I knew about the bobo_modification_date and was wishing for the same thing related to the user. Any other ideas? Thanks. ------------------------------ Chris Kratz chris.kratz@vistashare.com ----- Original Message ----- From: "Andreas Jung" <andreas@zope.com> To: "Chris Kratz" <chris.kratz@vistashare.com>; <zope@zope.org> Sent: Monday, October 08, 2001 1:48 PM Subject: Re: [Zope] modified by...
e.g. <dtml-var bobo_modification_date fmt="%Y-%m-%d">
Andreas ----- Original Message ----- From: "Chris Kratz" <chris.kratz@vistashare.com> To: <zope@zope.org> Sent: Monday, October 08, 2001 13:39 Subject: [Zope] modified by...
Hello all,
Has anyone found an easy way to display the name of the last user to modify a dtml document/method? On certain pages I would like to display who last modified it with the date and time. It would essentially be the last record on the undo page. Any ideas?
-Chris ------------------------------ Chris Kratz chris.kratz@vistashare.com
_______________________________________________ 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 )
if you're object supports the historical interface (via mixin) than you can try manage_change_history which will return this information see OFS/History.py and OFS/dtml/history.dtml, this info will only be available until the zodb is packed. if you need this info for the lifetime of the content object, you're better off implementing the support yourself, unless you can live without packing your zodb... hth kapil On Monday 08 October 2001 11:13 am, Chris Kratz wrote:
Thank you Andreas, but I am looking for the user name of the user that last modified a document. I knew about the bobo_modification_date and was wishing for the same thing related to the user. Any other ideas? Thanks. ------------------------------ Chris Kratz chris.kratz@vistashare.com
----- Original Message ----- From: "Andreas Jung" <andreas@zope.com> To: "Chris Kratz" <chris.kratz@vistashare.com>; <zope@zope.org> Sent: Monday, October 08, 2001 1:48 PM Subject: Re: [Zope] modified by...
e.g. <dtml-var bobo_modification_date fmt="%Y-%m-%d">
Andreas ----- Original Message ----- From: "Chris Kratz" <chris.kratz@vistashare.com> To: <zope@zope.org> Sent: Monday, October 08, 2001 13:39 Subject: [Zope] modified by...
Hello all,
Has anyone found an easy way to display the name of the last user to
modify
a dtml document/method? On certain pages I would like to display who
last
modified it with the date and time. It would essentially be the last
record
on the undo page. Any ideas?
-Chris ------------------------------ Chris Kratz chris.kratz@vistashare.com
_______________________________________________ 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 )
_______________________________________________ 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 )
to clarify a little try something like this <dtml-call "REQUEST.set('first_transaction', 0)"> <dtml-call "REQUEST.set('last_transaction', 1)"> <dtml-let foo=manage_change_history> Last changed by <dtml-var "foo['user_name']"> </dtml-let> other keys available description, time hth kapil On Monday 08 October 2001 10:33 am, kapil thangavelu wrote:
if you're object supports the historical interface (via mixin) than you can try manage_change_history which will return this information see OFS/History.py and OFS/dtml/history.dtml, this info will only be available until the zodb is packed. if you need this info for the lifetime of the content object, you're better off implementing the support yourself, unless you can live without packing your zodb...
hth
kapil
On Monday 08 October 2001 11:13 am, Chris Kratz wrote:
Thank you Andreas, but I am looking for the user name of the user that last modified a document. I knew about the bobo_modification_date and was wishing for the same thing related to the user. Any other ideas? Thanks. ------------------------------ Chris Kratz chris.kratz@vistashare.com
----- Original Message ----- From: "Andreas Jung" <andreas@zope.com> To: "Chris Kratz" <chris.kratz@vistashare.com>; <zope@zope.org> Sent: Monday, October 08, 2001 1:48 PM Subject: Re: [Zope] modified by...
e.g. <dtml-var bobo_modification_date fmt="%Y-%m-%d">
Andreas ----- Original Message ----- From: "Chris Kratz" <chris.kratz@vistashare.com> To: <zope@zope.org> Sent: Monday, October 08, 2001 13:39 Subject: [Zope] modified by...
Hello all,
Has anyone found an easy way to display the name of the last user to
modify
a dtml document/method? On certain pages I would like to display who
last
modified it with the date and time. It would essentially be the last
record
on the undo page. Any ideas?
-Chris ------------------------------ Chris Kratz chris.kratz@vistashare.com
_______________________________________________ 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 )
_______________________________________________ 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 )
_______________________________________________ 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 )
participants (3)
-
Andreas Jung -
Chris Kratz -
kapil thangavelu