[Zope] Startup hook
Andrew Langmead
alangmead at boston.com
Wed Aug 17 17:06:17 EDT 2005
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.
More information about the Zope
mailing list