diff options
author | Lance Stout <lancestout@gmail.com> | 2012-03-12 19:41:49 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-03-12 19:49:43 -0700 |
commit | 8d38fb511b80c6a8d88f6710283698fca7e05020 (patch) | |
tree | c7b7519f40352f1d7298316832018ced13430803 /sleekxmpp/features/feature_bind/bind.py | |
parent | 5a2cbbb731eb3efd15f095789eefed5a4b05b532 (diff) | |
download | slixmpp-8d38fb511b80c6a8d88f6710283698fca7e05020.tar.gz slixmpp-8d38fb511b80c6a8d88f6710283698fca7e05020.tar.bz2 slixmpp-8d38fb511b80c6a8d88f6710283698fca7e05020.tar.xz slixmpp-8d38fb511b80c6a8d88f6710283698fca7e05020.zip |
Move feature_bind to new system.
Diffstat (limited to 'sleekxmpp/features/feature_bind/bind.py')
-rw-r--r-- | sleekxmpp/features/feature_bind/bind.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sleekxmpp/features/feature_bind/bind.py b/sleekxmpp/features/feature_bind/bind.py index 7df8fee1..b828e26f 100644 --- a/sleekxmpp/features/feature_bind/bind.py +++ b/sleekxmpp/features/feature_bind/bind.py @@ -11,20 +11,20 @@ import logging from sleekxmpp.stanza import Iq, StreamFeatures from sleekxmpp.features.feature_bind import stanza from sleekxmpp.xmlstream import register_stanza_plugin -from sleekxmpp.plugins.base import base_plugin +from sleekxmpp.plugins import BasePlugin, register_plugin log = logging.getLogger(__name__) -class feature_bind(base_plugin): +class FeatureBind(BasePlugin): - def plugin_init(self): - self.name = 'Bind Resource' - self.rfc = '6120' - self.description = 'Resource Binding Stream Feature' - self.stanza = stanza + name = 'feature_bind' + description = 'RFC 6120: Stream Feature: Resource Binding' + dependencies = set() + stanza = stanza + def plugin_init(self): self.xmpp.register_feature('bind', self._handle_bind_resource, restart=False, |