17 Feb
2004
17 Feb
'04
1:53 p.m.
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