 |
 |
 |
Python Servlet Engine Manual |
 |
 |
 |
The plugin initialization routine is only called once during the life
of a PSE server process, when all the plugins are scanned and loaded
by the PSE engine. In order to create an initialization routine,
create a function with the following signature:
-
This function takes no arguments and can be used to initialize any
internal structures needed for the plugin. Returns True
upon successful initialization, False if the initialization
failed (and the plugin will not appear in the
pse.plugins
package).
Note:
The plugin_init function was previously named
init_plugin in versions prior to PSE 3.0 and was optional.
The plugin_init function is no longer optional as of
PSE 3.0. While your PSE 2.x plugins will still function in PSE 3.0,
you need to update your plugins to include a plugin_init
function, and it needs to return either True or
False.
Changed in version 3.0.
Release 3.0.6, documentation updated on April 25, 2006.