[Zope] Running a script at Zope startup

Tino Wildenhain tino@wildenhain.de
Mon, 28 Jul 2003 09:35:19 +0200


Hi Herman,

Herman Geldenhuys wrote:
> EmailHi all!
> 
> I have searched for a sollution, but could not find an appropriate way to
> execute a python script when Zope starts up.
> 
> Does anybody know of a way that I am able to do this? What I basically have,
> is client objects residing inside Zope objects, that needs to connect to
> remote servers each time zope starts up. The client connections cannot
> persist in the ZODB, so I need to create them each time. The zope objects in
> this instance acts only as a proxy-type object.

A common way to do this not at start up but soon as the object
is needed. Thats the way most DB adaptors do it.
Search for _v_* volatile attributes for a start.

HTH
Tino Wildenhain