From 4d063e287e1bb2010d115325a3c8c6ca7c542bfc Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 12 Feb 2015 12:21:20 +0100 Subject: Remove more threaded= and block= options from the plugins (also, correct a typo) --- slixmpp/plugins/xep_0222.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'slixmpp/plugins/xep_0222.py') diff --git a/slixmpp/plugins/xep_0222.py b/slixmpp/plugins/xep_0222.py index cadb1332..059f4c85 100644 --- a/slixmpp/plugins/xep_0222.py +++ b/slixmpp/plugins/xep_0222.py @@ -40,12 +40,11 @@ class XEP_0222(BasePlugin): return self.xmpp['xep_0060'].set_node_config(None, node, config, ifrom=ifrom, - block=block, callback=callback, timeout=timeout) def store(self, stanza, node=None, id=None, ifrom=None, options=None, - block=True, callback=None, timeout=None): + callback=None, timeout=None): """ Store public data via PEP. @@ -60,8 +59,6 @@ class XEP_0222(BasePlugin): options -- Publish options to use, which will be modified to fit the persistent storage option profile. ifrom -- Specify the sender's JID. - block -- Specify if the send call will block until a response - is received, or a timeout occurs. Defaults to True. timeout -- The length of time (in seconds) to wait for a response before exiting the send call if blocking is used. Defaults to slixmpp.xmlstream.RESPONSE_TIMEOUT @@ -85,12 +82,11 @@ class XEP_0222(BasePlugin): return self.xmpp['xep_0163'].publish(stanza, node, options=options, ifrom=ifrom, - block=block, callback=callback, timeout=timeout) def retrieve(self, node, id=None, item_ids=None, ifrom=None, - block=True, callback=None, timeout=None): + callback=None, timeout=None): """ Retrieve public data via PEP. @@ -103,8 +99,6 @@ class XEP_0222(BasePlugin): item_ids -- Specify a group of IDs. If id is also specified, it will be included in item_ids. ifrom -- Specify the sender's JID. - block -- Specify if the send call will block until a response - is received, or a timeout occurs. Defaults to True. timeout -- The length of time (in seconds) to wait for a response before exiting the send call if blocking is used. Defaults to slixmpp.xmlstream.RESPONSE_TIMEOUT @@ -119,7 +113,6 @@ class XEP_0222(BasePlugin): return self.xmpp['xep_0060'].get_items(None, node, item_ids=item_ids, ifrom=ifrom, - block=block, callback=callback, timeout=timeout) -- cgit v1.2.3