The StartupScripts product provides a way of having Python scripts in the ZODB run when Zope first starts up. This is an initial release for the purpose of having it more widely tested in practical situations. Feedback would be much appreciated, especially as to whether there might be a better way of doing things such as getting access to the application context when required by the implementation. Note that instances of the Python startup scripts need to be placed in the root folder in order for them to get run at Zope startup. When run the scripts will be run with the privileges of the script owner. The internal implementation of the StartupScript object is such that it extends the PythonScript object, so anything you can do with a normal Python script you can also do with a StartupScript object. The only exception to this may be that the "container" object passed to a script may not have all the same methods and attributes which are present when a script object is called through the web. Ie., no RESPONSE object, and no way of getting the URL associated with the request. -- Graham Dumpleton (grahamd@dscpl.com.au)
participants (1)
-
grahamd@dscpl.com.au