summaryrefslogtreecommitdiff
path: root/sleekxmpp/features/feature_mechanisms/mechanisms.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/mechanisms.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/mechanisms.py')
-rw-r--r--sleekxmpp/features/feature_mechanisms/mechanisms.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/sleekxmpp/features/feature_mechanisms/mechanisms.py b/sleekxmpp/features/feature_mechanisms/mechanisms.py
index da235e26..570b7141 100644
--- a/sleekxmpp/features/feature_mechanisms/mechanisms.py
+++ b/sleekxmpp/features/feature_mechanisms/mechanisms.py
@@ -13,23 +13,23 @@ from sleekxmpp.thirdparty.suelta.exceptions import SASLCancelled, SASLError
from sleekxmpp.stanza import StreamFeatures
from sleekxmpp.xmlstream import RestartStream, register_stanza_plugin
+from sleekxmpp.plugins import BasePlugin
from sleekxmpp.xmlstream.matcher import MatchXPath
from sleekxmpp.xmlstream.handler import Callback
-from sleekxmpp.plugins.base import base_plugin
from sleekxmpp.features.feature_mechanisms import stanza
log = logging.getLogger(__name__)
-class feature_mechanisms(base_plugin):
+class FeatureMechanisms(BasePlugin):
- def plugin_init(self):
- self.name = 'SASL Mechanisms'
- self.rfc = '6120'
- self.description = "SASL Stream Feature"
- self.stanza = stanza
+ name = 'feature_mechanisms'
+ description = 'RFC 6120: Stream Feature: SASL'
+ dependencies = set()
+ stanza = stanza
+ def plugin_init(self):
self.use_mech = self.config.get('use_mech', None)
def tls_active():