summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/__init__.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-03-12 09:43:24 -0700
committerLance Stout <lancestout@gmail.com>2012-03-12 19:32:20 -0700
commitf8f2b541db2c7d53e96ff972fc3349fa4c1ea05d (patch)
treef39f1ca22371088f72d96503d2fac30fe43cf47a /sleekxmpp/plugins/__init__.py
parent9d645ad5cd06cabc20cd1b0067a2b16a0c1e7814 (diff)
downloadslixmpp-f8f2b541db2c7d53e96ff972fc3349fa4c1ea05d.tar.gz
slixmpp-f8f2b541db2c7d53e96ff972fc3349fa4c1ea05d.tar.bz2
slixmpp-f8f2b541db2c7d53e96ff972fc3349fa4c1ea05d.tar.xz
slixmpp-f8f2b541db2c7d53e96ff972fc3349fa4c1ea05d.zip
Handle loading plugins on demand.
Plugins that are referenced as dependencies, but have not been registered now will be imported. Newer plugins should register themselves automatically, but older style plugins will be explicitly registered after import.
Diffstat (limited to 'sleekxmpp/plugins/__init__.py')
-rw-r--r--sleekxmpp/plugins/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sleekxmpp/plugins/__init__.py b/sleekxmpp/plugins/__init__.py
index 4fb41919..8f8f851a 100644
--- a/sleekxmpp/plugins/__init__.py
+++ b/sleekxmpp/plugins/__init__.py
@@ -6,8 +6,9 @@
See the file LICENSE for copying permission.
"""
-from sleekxmpp.plugins.base import PluginManager, PluginNotFound, \
- BasePlugin, register_plugin
+from sleekxmpp.plugins.base import PluginManager, PluginNotFound, BasePlugin
+from sleekxmpp.plugins.base import register_plugin, load_plugin
+
__all__ = [
# Non-standard