[Zope] Re: Zope uptime

Maik Jablonski maik.jablonski at uni-bielefeld.de
Tue Feb 17 08:53:20 EST 2004


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




More information about the Zope mailing list