 |
 |
 |
Python Servlet Engine Manual |
 |
 |
 |
The module initialize function is called before each servlet request
is processed. This function initializes the plugin module that will
be seen within the servlet. Create a function with the following
signature:
-
mod and req represent the module object and the apache
request object respectively. The module object is an empty module
with the name of the plugin to be initialized, if necessary, with
all the properties and methods you will require to expose to
servlets. The request object is defined in the mod_python
documentation, provided to allow your plugin to interact with the
apache request.
If the module does not contain an initialize function, then
the plugin will not be loaded.
Release 3.0.6, documentation updated on April 25, 2006.