diff options
author | mathieui <mathieui@mathieui.net> | 2015-06-21 16:23:47 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2015-06-21 16:23:47 +0200 |
commit | f7164d35d29041790be8b9fcd77dd89f75aee789 (patch) | |
tree | 402b9eba0ea8c801c10c73318b0fc0a947343750 /slixmpp/plugins/xep_0030/disco.py | |
parent | 04bff001713fa8ebcd67634048acb15caca3d8e6 (diff) | |
download | slixmpp-f7164d35d29041790be8b9fcd77dd89f75aee789.tar.gz slixmpp-f7164d35d29041790be8b9fcd77dd89f75aee789.tar.bz2 slixmpp-f7164d35d29041790be8b9fcd77dd89f75aee789.tar.xz slixmpp-f7164d35d29041790be8b9fcd77dd89f75aee789.zip |
Add a wrapper to get_info/get_items functions
(and fix caps in the process)
Diffstat (limited to 'slixmpp/plugins/xep_0030/disco.py')
-rw-r--r-- | slixmpp/plugins/xep_0030/disco.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/slixmpp/plugins/xep_0030/disco.py b/slixmpp/plugins/xep_0030/disco.py index 18e7ccde..f368bc12 100644 --- a/slixmpp/plugins/xep_0030/disco.py +++ b/slixmpp/plugins/xep_0030/disco.py @@ -9,6 +9,7 @@ import logging from slixmpp import Iq +from slixmpp import future_wrapper from slixmpp.plugins import BasePlugin from slixmpp.xmlstream.handler import Callback from slixmpp.xmlstream.matcher import StanzaPath @@ -294,6 +295,7 @@ class XEP_0030(BasePlugin): 'cached': cached} return self.api['has_identity'](jid, node, ifrom, data) + @future_wrapper def get_info(self, jid=None, node=None, local=None, cached=None, **kwargs): """ @@ -381,6 +383,7 @@ class XEP_0030(BasePlugin): info = info['disco_info'] self.api['set_info'](jid, node, None, info) + @future_wrapper def get_items(self, jid=None, node=None, local=False, **kwargs): """ Retrieve the disco#items results from a given JID/node combination. |