summaryrefslogtreecommitdiff
path: root/slixmpp/plugins/xep_0054/vcard_temp.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2015-09-04 01:05:56 +0200
committermathieui <mathieui@mathieui.net>2015-09-04 01:05:56 +0200
commit00a069872054b79fec1e29172df995e065485585 (patch)
tree63ba1062ade9bb2e1bfc0a9eaa1ecef32246f032 /slixmpp/plugins/xep_0054/vcard_temp.py
parent804b23d390fe5733f4f2cbd1b588fbc9b7c42e21 (diff)
downloadslixmpp-00a069872054b79fec1e29172df995e065485585.tar.gz
slixmpp-00a069872054b79fec1e29172df995e065485585.tar.bz2
slixmpp-00a069872054b79fec1e29172df995e065485585.tar.xz
slixmpp-00a069872054b79fec1e29172df995e065485585.zip
Add timeout_callback to a bunch of plugins as a parameter
Diffstat (limited to 'slixmpp/plugins/xep_0054/vcard_temp.py')
-rw-r--r--slixmpp/plugins/xep_0054/vcard_temp.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/slixmpp/plugins/xep_0054/vcard_temp.py b/slixmpp/plugins/xep_0054/vcard_temp.py
index 85736b29..f0173386 100644
--- a/slixmpp/plugins/xep_0054/vcard_temp.py
+++ b/slixmpp/plugins/xep_0054/vcard_temp.py
@@ -62,7 +62,7 @@ class XEP_0054(BasePlugin):
@future_wrapper
def get_vcard(self, jid=None, ifrom=None, local=None, cached=False,
- callback=None, timeout=None):
+ callback=None, timeout=None, timeout_callback=None):
if local is None:
if jid is not None and not isinstance(jid, JID):
jid = JID(jid)
@@ -101,11 +101,12 @@ class XEP_0054(BasePlugin):
iq['type'] = 'get'
iq.enable('vcard_temp')
- return iq.send(callback=callback, timeout=timeout)
+ return iq.send(callback=callback, timeout=timeout,
+ timeout_callback=timeout_callback)
@future_wrapper
def publish_vcard(self, vcard=None, jid=None, ifrom=None,
- callback=None, timeout=None):
+ callback=None, timeout=None, timeout_callback=None):
self.api['set_vcard'](jid, None, ifrom, vcard)
if self.xmpp.is_component:
return
@@ -115,7 +116,8 @@ class XEP_0054(BasePlugin):
iq['from'] = ifrom
iq['type'] = 'set'
iq.append(vcard)
- return iq.send(callback=callback, timeout=timeout)
+ return iq.send(callback=callback, timeout=timeout,
+ timeout_callback=timeout_callback)
def _handle_get_vcard(self, iq):
if iq['type'] == 'result':