summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/__init__.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-03-11 18:09:45 -0700
committerLance Stout <lancestout@gmail.com>2012-03-12 16:24:18 -0700
commit01b24999152c1eecceeac96c13f6e3e29ff10a6c (patch)
tree53eaaccadbff54410c6add62d63d3577603edee9 /sleekxmpp/plugins/__init__.py
parent9f43d31bf511e0917f11b7edcac93921100383b7 (diff)
downloadslixmpp-01b24999152c1eecceeac96c13f6e3e29ff10a6c.tar.gz
slixmpp-01b24999152c1eecceeac96c13f6e3e29ff10a6c.tar.bz2
slixmpp-01b24999152c1eecceeac96c13f6e3e29ff10a6c.tar.xz
slixmpp-01b24999152c1eecceeac96c13f6e3e29ff10a6c.zip
Introduce new plugin system.
The new system is backward compatible and will load older style plugins. The new plugin framework allows plugins to track their dependencies, and will auto-enable plugins as needed. Dependencies are tracked via a class-level set named `dependencies` in each plugin. Plugin names are no longer tightly coupled with the plugin class name, Pso EP8 style class names may be used. Disabling plugins is now allowed, but ensuring proper cleanup is left to the plugin implementation. The use of a `post_init()` method is no longer needed for new style plugins, but plugins following the old style will still require a `post_init()` method.
Diffstat (limited to 'sleekxmpp/plugins/__init__.py')
-rw-r--r--sleekxmpp/plugins/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sleekxmpp/plugins/__init__.py b/sleekxmpp/plugins/__init__.py
index 6cb854ed..4fb41919 100644
--- a/sleekxmpp/plugins/__init__.py
+++ b/sleekxmpp/plugins/__init__.py
@@ -6,6 +6,9 @@
See the file LICENSE for copying permission.
"""
+from sleekxmpp.plugins.base import PluginManager, PluginNotFound, \
+ BasePlugin, register_plugin
+
__all__ = [
# Non-standard
'gmail_notify', # Gmail searching and notifications