summaryrefslogtreecommitdiff
path: root/slixmpp/plugins/xep_0049
diff options
context:
space:
mode:
Diffstat (limited to 'slixmpp/plugins/xep_0049')
-rw-r--r--slixmpp/plugins/xep_0049/private_storage.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/slixmpp/plugins/xep_0049/private_storage.py b/slixmpp/plugins/xep_0049/private_storage.py
index 32309069..a66c05d1 100644
--- a/slixmpp/plugins/xep_0049/private_storage.py
+++ b/slixmpp/plugins/xep_0049/private_storage.py
@@ -9,7 +9,6 @@
import logging
from slixmpp import Iq
-from slixmpp import coroutine_wrapper
from slixmpp.plugins import BasePlugin
from slixmpp.xmlstream.handler import Callback
from slixmpp.xmlstream.matcher import StanzaPath
@@ -33,9 +32,8 @@ class XEP_0049(BasePlugin):
def register(self, stanza):
register_stanza_plugin(PrivateXML, stanza, iterable=True)
- @coroutine_wrapper
def store(self, data, ifrom=None, timeout=None, callback=None,
- timeout_callback=None, coroutine=False):
+ timeout_callback=None):
iq = self.xmpp.Iq()
iq['type'] = 'set'
iq['from'] = ifrom
@@ -46,15 +44,14 @@ class XEP_0049(BasePlugin):
for elem in data:
iq['private'].append(elem)
- return iq.send(timeout=timeout, callback=callback, coroutine=coroutine,
+ return iq.send(timeout=timeout, callback=callback,
timeout_callback=timeout_callback)
- @coroutine_wrapper
def retrieve(self, name, ifrom=None, timeout=None, callback=None,
- timeout_callback=None, coroutine=False):
+ timeout_callback=None):
iq = self.xmpp.Iq()
iq['type'] = 'get'
iq['from'] = ifrom
iq['private'].enable(name)
- return iq.send(timeout=timeout, callback=callback, coroutine=coroutine,
- timeout_callback=timeout_callback)
+ return iq.send(timeout=timeout, callback=callback,
+ timeout_callback=timeout_callback)