Mercurial > libervia-backend
comparison 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 |
comparison
equal
deleted
inserted
replaced
2109:85f3e12e984d | 2110:2d633b3c923d |
---|---|
74 def IQ(self, type_=u'set', timeout=None): | 74 def IQ(self, type_=u'set', timeout=None): |
75 """shortcut to create an IQ element managing deferred | 75 """shortcut to create an IQ element managing deferred |
76 | 76 |
77 @param type_(unicode): IQ type ('set' or 'get') | 77 @param type_(unicode): IQ type ('set' or 'get') |
78 @param timeout(None, int): timeout in seconds | 78 @param timeout(None, int): timeout in seconds |
79 @return((D)domish.Element: result stanza | |
80 errback is called if and error stanza is returned | |
79 """ | 81 """ |
80 iq_elt = xmlstream.IQ(self.xmlstream, type_) | 82 iq_elt = xmlstream.IQ(self.xmlstream, type_) |
81 iq_elt.timeout = timeout | 83 iq_elt.timeout = timeout |
82 return iq_elt | 84 return iq_elt |
83 | 85 |