summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0009/stanza/RPC.py
diff options
context:
space:
mode:
Diffstat (limited to 'sleekxmpp/plugins/xep_0009/stanza/RPC.py')
-rw-r--r--sleekxmpp/plugins/xep_0009/stanza/RPC.py24
1 files changed, 10 insertions, 14 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)