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.
This commit is contained in:
Lance Stout
2012-03-12 09:43:24 -07:00
parent 9d645ad5cd
commit f8f2b541db
3 changed files with 46 additions and 33 deletions

View File

@@ -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