diff options
author | Florent Le Coz <louiz@louiz.org> | 2011-02-09 09:45:45 +0800 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2011-02-09 10:02:14 +0800 |
commit | 4b71fba64c8675aa891fd6a92eb6f0f045e4a48e (patch) | |
tree | 006b466ce33193dcacb62fe240a4bbab05e9f981 /sleekxmpp/plugins/xep_0009/stanza | |
parent | 1ed06bebcdbe82e0c528c98134e381f5b4dcccad (diff) | |
download | slixmpp-4b71fba64c8675aa891fd6a92eb6f0f045e4a48e.tar.gz slixmpp-4b71fba64c8675aa891fd6a92eb6f0f045e4a48e.tar.bz2 slixmpp-4b71fba64c8675aa891fd6a92eb6f0f045e4a48e.tar.xz slixmpp-4b71fba64c8675aa891fd6a92eb6f0f045e4a48e.zip |
Fix the xep_0009 import (no more relatives)
Also, remove trailing spaces in all files
of this plugin
Diffstat (limited to 'sleekxmpp/plugins/xep_0009/stanza')
-rw-r--r-- | sleekxmpp/plugins/xep_0009/stanza/RPC.py | 24 | ||||
-rw-r--r-- | sleekxmpp/plugins/xep_0009/stanza/__init__.py | 2 |
2 files changed, 11 insertions, 15 deletions
diff --git a/sleekxmpp/plugins/xep_0009/stanza/RPC.py b/sleekxmpp/plugins/xep_0009/stanza/RPC.py index 24f2efd8..3d1c77a2 100644 --- a/sleekxmpp/plugins/xep_0009/stanza/RPC.py +++ b/sleekxmpp/plugins/xep_0009/stanza/RPC.py @@ -14,55 +14,51 @@ class RPCQuery(ElementBase): name = 'query' namespace = 'jabber:iq:rpc' plugin_attrib = 'rpc_query' - interfaces = set(()) + interfaces = set(()) subinterfaces = set(()) plugin_attrib_map = {} plugin_tag_map = {} - class MethodCall(ElementBase): name = 'methodCall' namespace = 'jabber:iq:rpc' plugin_attrib = 'method_call' - interfaces = set(('method_name', 'params')) + interfaces = set(('method_name', 'params')) subinterfaces = set(()) plugin_attrib_map = {} - plugin_tag_map = {} - + plugin_tag_map = {} def get_method_name(self): return self._get_sub_text('methodName') def set_method_name(self, value): return self._set_sub_text('methodName', value) - + def get_params(self): return self.xml.find('{%s}params' % self.namespace) - + def set_params(self, params): self.append(params) - - + class MethodResponse(ElementBase): name = 'methodResponse' namespace = 'jabber:iq:rpc' plugin_attrib = 'method_response' - interfaces = set(('params', 'fault')) + interfaces = set(('params', 'fault')) subinterfaces = set(()) plugin_attrib_map = {} plugin_tag_map = {} - - + def get_params(self): return self.xml.find('{%s}params' % self.namespace) - + def set_params(self, params): self.append(params) def get_fault(self): return self.xml.find('{%s}fault' % self.namespace) - + def set_fault(self, fault): self.append(fault) diff --git a/sleekxmpp/plugins/xep_0009/stanza/__init__.py b/sleekxmpp/plugins/xep_0009/stanza/__init__.py index 0b902238..5dcbf330 100644 --- a/sleekxmpp/plugins/xep_0009/stanza/__init__.py +++ b/sleekxmpp/plugins/xep_0009/stanza/__init__.py @@ -6,4 +6,4 @@ See the file LICENSE for copying permission. """ -from RPC import RPCQuery, MethodCall, MethodResponse +from sleekxmpp.plugins.xep_0009.stanza.RPC import RPCQuery, MethodCall, MethodResponse |