summaryrefslogtreecommitdiff
path: root/sleekxmpp/features/feature_starttls/starttls.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-03-12 19:57:20 -0700
committerLance Stout <lancestout@gmail.com>2012-03-12 19:57:20 -0700
commit24ec448b7f29b6eb66818715bdbd30e09fd0ed0b (patch)
tree2a5f66861d9cf792f8b98dd9a4ecf5599ccfaf0f /sleekxmpp/features/feature_starttls/starttls.py
parented5a2f400dc1ac5d6db3242857b1a3ac1c7f72d0 (diff)
downloadslixmpp-24ec448b7f29b6eb66818715bdbd30e09fd0ed0b.tar.gz
slixmpp-24ec448b7f29b6eb66818715bdbd30e09fd0ed0b.tar.bz2
slixmpp-24ec448b7f29b6eb66818715bdbd30e09fd0ed0b.tar.xz
slixmpp-24ec448b7f29b6eb66818715bdbd30e09fd0ed0b.zip
Move feature_starttls to new system.
Diffstat (limited to 'sleekxmpp/features/feature_starttls/starttls.py')
-rw-r--r--sleekxmpp/features/feature_starttls/starttls.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/sleekxmpp/features/feature_starttls/starttls.py b/sleekxmpp/features/feature_starttls/starttls.py
index 24ff7436..212b9da5 100644
--- a/sleekxmpp/features/feature_starttls/starttls.py
+++ b/sleekxmpp/features/feature_starttls/starttls.py
@@ -10,23 +10,23 @@ import logging
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_starttls import stanza
log = logging.getLogger(__name__)
-class feature_starttls(base_plugin):
+class FeatureSTARTTLS(BasePlugin):
- def plugin_init(self):
- self.name = "STARTTLS"
- self.rfc = '6120'
- self.description = "STARTTLS Stream Feature"
- self.stanza = stanza
+ name = 'feature_starttls'
+ description = 'RFC 6120: Stream Feature: STARTTLS'
+ dependencies = set()
+ stanza = stanza
+ def plugin_init(self):
self.xmpp.register_handler(
Callback('STARTTLS Proceed',
MatchXPath(stanza.Proceed.tag_name()),