From: Jonathan E. <jon...@ca...> - 2005-08-11 21:36:20
|
On Thu, 11 Aug 2005 16:26:05 -0500, "Howard, Rock" <roc...@am...> said: > it > occurred to me that it would be nice to be able to do some startup code > for my webapps after the server has initialized but before it handles > the first request. I didn't see a natural place to do that in the source > code, but I thought I would ask before taking a hack at it. The natural place is to specify your code as one of the modules in the "imports" list in spyceconf. I.e., your code goes into init.py and you add imports.append(init) to spyceconf. -Jonathan |