summaryrefslogtreecommitdiff
path: root/sleekxmpp/features/feature_mechanisms/__init__.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-03-12 19:50:27 -0700
committerLance Stout <lancestout@gmail.com>2012-03-12 19:52:01 -0700
commit9596616b424417f8a03657dfc3c958eb92147a3b (patch)
treebde04896323f0317aa0a100b0bee4cbd98e36df9 /sleekxmpp/features/feature_mechanisms/__init__.py
parent8d38fb511b80c6a8d88f6710283698fca7e05020 (diff)
downloadslixmpp-9596616b424417f8a03657dfc3c958eb92147a3b.tar.gz
slixmpp-9596616b424417f8a03657dfc3c958eb92147a3b.tar.bz2
slixmpp-9596616b424417f8a03657dfc3c958eb92147a3b.tar.xz
slixmpp-9596616b424417f8a03657dfc3c958eb92147a3b.zip
Move feature_mechanisms to new system.
Diffstat (limited to 'sleekxmpp/features/feature_mechanisms/__init__.py')
-rw-r--r--sleekxmpp/features/feature_mechanisms/__init__.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/sleekxmpp/features/feature_mechanisms/__init__.py b/sleekxmpp/features/feature_mechanisms/__init__.py
index 5379ef4e..9f7611ed 100644
--- a/sleekxmpp/features/feature_mechanisms/__init__.py
+++ b/sleekxmpp/features/feature_mechanisms/__init__.py
@@ -6,8 +6,17 @@
See the file LICENSE for copying permission.
"""
-from sleekxmpp.features.feature_mechanisms.mechanisms import feature_mechanisms
+from sleekxmpp.plugins.base import register_plugin
+
+from sleekxmpp.features.feature_mechanisms.mechanisms import FeatureMechanisms
from sleekxmpp.features.feature_mechanisms.stanza import Mechanisms
from sleekxmpp.features.feature_mechanisms.stanza import Auth
from sleekxmpp.features.feature_mechanisms.stanza import Success
from sleekxmpp.features.feature_mechanisms.stanza import Failure
+
+
+register_plugin(FeatureMechanisms)
+
+
+# Retain some backwards compatibility
+feature_mechanisms = FeatureMechanisms