Hello everybody, Is there a way to get the Zope uptime from either a DTML-script or a Python Script? Thanks, -Petter-
Maik Jablonski wrote:
Is there a way to get the Zope uptime from either a DTML-script or a Python Script?
<dtml-var "Control_Panel.process_time()">
Thanks, but this only seems to work if I'm inlogged as a manager. I need to display the uptime on all pages, no matter if the user is inlogged or not. How can I do this? -Petter-
http://www.zopelabs.com/cookbook/993016904 Jake -- http://www.ZopeZone.com Petter Holmström said:
Maik Jablonski wrote:
Is there a way to get the Zope uptime from either a DTML-script or a Python Script?
<dtml-var "Control_Panel.process_time()">
Thanks, but this only seems to work if I'm inlogged as a manager. I need to display the uptime on all pages, no matter if the user is inlogged or not. How can I do this?
-Petter-
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Petter Holmström wrote:
Maik Jablonski wrote:
Is there a way to get the Zope uptime from either a DTML-script or a Python Script?
<dtml-var "Control_Panel.process_time()">
Thanks, but this only seems to work if I'm inlogged as a manager. I need to display the uptime on all pages, no matter if the user is inlogged or not. How can I do this?
Create a PythonScript with id=getZopeUpTime with: return context.Control_Panel.process_time() Then assign Proxy-Role=Manager to this Script and call it via DTML like: <dtml-var getZopeUpTime> That's it... Another suggestion is: Please read the ZOPE-Book, it's all documented already! Cheers, Maik
* Tuesday 17 February 2004, alle 15:49, Petter Holmström scrive:
<dtml-var "Control_Panel.process_time()">
Thanks, but this only seems to work if I'm inlogged as a manager. I need to display the uptime on all pages, no matter if the user is inlogged or not. How can I do this?
DTML-script or Python Script -> proxy Manager -- Giuseppe Masili giuseppe at linux dot it Administrator Zope Italy http://www.zope.it The limits of a writing a product are really your imagination. - Andy McKay - http://plone.org/documentation/book/8
* Tuesday 17 February 2004, alle 14:47, Petter Holmström scrive:
Hello everybody,
Is there a way to get the Zope uptime from either a DTML-script or a Python Script?
Control_Panel.process_time -- Giuseppe Masili giuseppe at linux dot it Administrator Zope Italy http://www.zope.it "Meglio una risposta decente che due o tre tanto per rispondere". Paolo Dina
participants (4)
-
giuseppe@linux.it -
Jake -
Maik Jablonski -
Petter Holmström