The pse_handler.api module provides some interfaces to help you develop PSE extensions. It is usually safe to do:
from pse_handler.api import *
The members are described below.
| id, *arg, **kw) |
| text) |
| message, exc_info) |
sys.exc_info()) using the set PSE logging
rules, prepended by the string in message.
For example, the plugin loader uses this function to report errors.
If message is "plugin bad_plugin not imported due to
error(s)", then the resulting output might be
[Wed Oct 19 17:38:51 2005] plugin bad_plugin not imported due to error(s): (traceback)
File "/usr/lib/python2.4/site-packages/pse_handler/plugins/__init__.py", line
67, in load_plugins
new_mod.initialize and new_mod.finalize
AttributeError: 'module' object has no attribute 'initialize'
| text, [level]) |
mod_python.apache.APLOG_ERR. Note that the apache
module is also accessible in pse_handler.api.