diff src/core/xmpp.py @ 2110:2d633b3c923d

plugin XEP-0231: Bits of Binary first draft: The current implementation only retrieve data from Bits of Binary, it's not used yet for sending. When an XHTML-IM message is received (XEP-0071), all <img> are checked and if a cid scheme is found in src attribute the file is retrieved and the src is changed with cached file.
author Goffi <goffi@goffi.org>
date Thu, 05 Jan 2017 20:29:05 +0100
parents 85f3e12e984d
children 9c861d07b5b6
line wrap: on
line diff
--- a/src/core/xmpp.py	Thu Jan 05 20:23:38 2017 +0100
+++ b/src/core/xmpp.py	Thu Jan 05 20:29:05 2017 +0100
@@ -76,6 +76,8 @@
 
         @param type_(unicode): IQ type ('set' or 'get')
         @param timeout(None, int): timeout in seconds
+        @return((D)domish.Element: result stanza
+            errback is called if and error stanza is returned
         """
         iq_elt = xmlstream.IQ(self.xmlstream, type_)
         iq_elt.timeout = timeout