Home | Trees | Index | Help |
|
---|
Package Pyblosxom :: Module plugin_utils |
|
Function Summary | |
---|---|
Goes through the plugin's contents and catalogues all the functions that start with cb_. | |
list of functions |
Returns a list of functions registered with the callback. |
string |
Takes a filename and returns the module name from the filename. |
Python module |
This retrieves a plugin instance (it's a Python module instance) by name. |
list of strings |
This handles the situation where the user has provided a series of plugin dirs, but has not specified which plugins they want to load from those dirs. |
Imports and initializes plugins from the directories in the list specified by "plugins_dir". |
Variable Summary | |
---|---|
str |
__revision__ = '$Id: plugin_utils.py,v 1.10 2005/12/09 0...
|
dict |
callbacks = {}
|
list |
plugins = []
|
Function Details |
---|
catalogue_plugin(plugin_module)Goes through the plugin's contents and catalogues all the functions that start with cb_. Functions that start with cb_ are callbacks.
|
get_callback_chain(chain)Returns a list of functions registered with the callback.
|
get_module_name(filename)Takes a filename and returns the module name from the filename. Example: passing in "/blah/blah/blah/module.ext" returns "module"
|
get_plugin_by_name(name)This retrieves a plugin instance (it's a Python module instance) by name.
|
get_plugin_list(plugin_list, plugin_dirs)This handles the situation where the user has provided a series of plugin dirs, but has not specified which plugins they want to load from those dirs. In this case, we load all possible plugins except the ones whose names being with _ .
|
initialize_plugins(plugin_dirs, plugin_list)Imports and initializes plugins from the directories in the list specified by "plugins_dir". If no such list exists, then we don't load any plugins. If the user specifies a "load_plugins" list of plugins to load, then we explicitly load those plugins in the order they're listed. If the load_plugins key does not exist, then we load all the plugins in the plugins directory using an alphanumeric sorting order.
|
Variable Details |
---|
__revision__
|
callbacks
|
plugins
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Tue Feb 7 21:43:57 2006 | http://epydoc.sf.net |