Hello I need to execute something each time Zope starts, is there any place where i could put such things? (apart from modifying Zope.Startup.__init__.py) Gabriel Genellina Softlab SRL
On 8/17/05, Gabriel Genellina <gagenellina@softlab.com.ar> wrote:
Hello
I need to execute something each time Zope starts,
Really? Could you explain what and why? -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content Management http://www.cps-project.org/
Gabriel Genellina wrote at 2005-8-17 11:34 -0300:
I need to execute something each time Zope starts, is there any place where i could put such things? (apart from modifying Zope.Startup.__init__.py)
An incredibly long time ago, there was a (third party) product that did this. I forgot its name... -- Dieter
Am Mittwoch, den 17.08.2005, 22:09 +0200 schrieb Dieter Maurer:
Gabriel Genellina wrote at 2005-8-17 11:34 -0300:
I need to execute something each time Zope starts, is there any place where i could put such things? (apart from modifying Zope.Startup.__init__.py)
An incredibly long time ago, there was a (third party) product that did this. I forgot its name...
cd Products mkdir FancyThirtPartyStartupDieterForgotTheName cd Fancy* echo "import mymoduleineedtostart" >__init__.py echo "mymoduleineedtostart.run()" >>__init__.py maybe? ;)
On Aug 17, 2005, at 4:40 PM, Tino Wildenhain wrote:
cd Products mkdir FancyThirtPartyStartupDieterForgotTheName cd Fancy* echo "import mymoduleineedtostart" >__init__.py echo "mymoduleineedtostart.run()" >>__init__.py
maybe? ;)
A neat variation of this would be something derived from OFS.Folder.Folder that would iterate over each of its contained objects and execute them. You could then drop in whatever sort of python scripts, external methods, ZSQL methods, custom products, or whatever you wanted to have done at startup.
participants (5)
-
Andrew Langmead -
Dieter Maurer -
Gabriel Genellina -
Lennart Regebro -
Tino Wildenhain