Emmanuel Gil Peyrot
128cc2eeb4
XEP-0115: Use the new cache system.
2018-03-31 00:25:28 +02:00
Emmanuel Gil Peyrot
2f1225bad3
Carry the node attribute to the disco#info result.
...
Fixes #3323 .
2018-03-14 16:25:21 +01:00
Emmanuel Gil Peyrot
841f5a5a5b
xep_0363: Only send the basename() of the filename to the server.
2018-03-11 19:40:15 +01:00
Emmanuel Gil Peyrot
0c6de5e972
xep_0363: Simplify Content-Type guessing.
2018-03-11 19:39:51 +01:00
Emmanuel Gil Peyrot
81dc61c55c
xep_0363: Fix max_file_size variable name.
2018-03-11 19:39:30 +01:00
Emmanuel Gil Peyrot
bd63b1ce70
Simplify usage of HTTP File Upload plugin.
...
This makes it usable only on Python 3.5, as documented.
2018-03-08 14:29:07 +01:00
Emmanuel Gil Peyrot
66500ef5fb
Add an HTTP File Upload plugin.
2018-03-08 03:38:59 +01:00
mathieui
979396bb1e
asyncio.async has been scheduled for removal for a long time now
...
move to asyncio.ensure_future
2018-02-11 19:25:38 +01:00
mathieui
e177726387
Fix usage of the 0004 plugin interface
...
form['fields'] is an ordered list of fields while most plugins expect a
dict there. Fixes, among other things, a caps bug.
2018-02-11 16:42:59 +01:00
Emmanuel Gil Peyrot
20e88fda50
Fix typos, thanks codespell
!
2018-01-10 02:18:07 +01:00
Emmanuel Gil Peyrot
f252be9b6d
XEP-0115: Fix typo.
2018-01-05 18:03:42 +01:00
Emmanuel Gil Peyrot
7c7f4308c5
Add a Markup plugin.
2017-11-23 12:18:01 +00:00
Emmanuel Gil Peyrot
e3fd0af9c8
xep_0054: Fix parsing BINVAL element.
2017-10-08 15:42:48 +01:00
mathieui
27e23672c1
Update the MAM plugin for asyncio & new namespace
...
And add an example
2017-09-24 17:43:06 +02:00
mathieui
b38e229359
Update RSM for asyncio
...
- Use an async iterator
- Add a "recv_interface" parameter in order to differenciate the stanza
we send from the stanza we receive (required for MAM)
- Add a pre_cb to run before sending the query stanza
- Add a post_cb to run after receiving the result stanza
2017-07-21 15:01:13 +02:00
Emmanuel Gil Peyrot
9a563f1425
XEP-0030: Optimise add_node usage a bit.
2017-07-17 22:46:48 +01:00
Emmanuel Gil Peyrot
8b6f5953a7
XEP-0319: Use the correct timezone.
...
This fixes a specification violation, XEP-0082 says that a date MUST
have a timezone, but we were sending the *local* time without any
timezone information.
2017-07-17 22:20:30 +01:00
Emmanuel Gil Peyrot
59dad12820
XEP-0300: Workaround for Python 3.5 or below.
2017-02-11 23:30:43 +00:00
Emmanuel Gil Peyrot
3721bf9f6b
Implement XEP-0300 (Use of Cryptographic Hash Functions in XMPP)
...
This is used to provide hash agility support and let other XEPs select
which hash function they support.
2017-02-11 04:02:20 +00:00
mathieui
22664ee7b8
Fix carbons
2017-01-28 00:02:27 +01:00
Clint Olson
6476cfcde5
Remove unused import caught by Codacy.
2017-01-23 23:58:53 -08:00
Clint Olson
5bb347e884
Fix partially-merged Google plugin from acc52fd935b7e7.
2017-01-23 23:51:59 -08:00
Emmanuel Gil Peyrot
820144c40c
Add missing asyncio.coroutine decorators.
2016-12-30 13:41:15 +01:00
Emmanuel Gil Peyrot
457785b286
XEP-0380: Add a helper to test for the presence of an EME tag.
2016-11-26 16:41:48 +00:00
Emmanuel Gil Peyrot
4847f834bd
Add a plugin for XEP-0380: Explicit Message Encryption.
2016-11-26 16:29:19 +00:00
Emmanuel Gil Peyrot
7ddd37be29
XEP-0323: Fix wrong import.
2016-10-27 06:23:08 +01:00
Emmanuel Gil Peyrot
a4d3a4a25e
XEP-0313: Add missing setter argument.
2016-10-27 06:22:50 +01:00
mathieui
58bd07628b
Add missing parameters in XEP-0222 and XEP-0223
2016-10-27 00:21:01 +02:00
mathieui
3569038493
XEP-0009: fix a traceback on recipient unavailable
...
(probably a past typo)
2016-10-27 00:18:43 +02:00
mathieui
20c4ff823a
Add missing JID import in XEP-0079 and 0258
2016-10-27 00:17:29 +02:00
mathieui
8a7448a5a1
Add missing imports in XEP-0333
2016-10-27 00:15:25 +02:00
mathieui
d23d8f901e
Fix a traceback on XEP-0221 del uri['value']
...
(typo)
2016-10-27 00:11:27 +02:00
Emmanuel Gil Peyrot
d008988843
Manual cleanup of the remaining set([…]) and set((…)).
2016-10-22 13:37:46 +01:00
Emmanuel Gil Peyrot
dcacc7d7d5
sed -i 's/set(\[\(.*\)\])$/{\1}/g' **/*.py
2016-10-22 13:21:44 +01:00
Emmanuel Gil Peyrot
c4285961df
sed -i 's/set((\(.*\)))$/{\1}/g' **/*.py
2016-10-22 13:21:42 +01:00
Emmanuel Gil Peyrot
1038f656eb
sed -i 's/set((\(.*\),))$/{\1}/g' **/*.py
2016-10-22 13:21:41 +01:00
mathieui
f8cea760b6
Fix the gmail_notify plugin
2016-10-04 21:10:10 +02:00
mathieui
5ef01ecdd1
Fix XEP-0033
...
Re-add relevant stanza methods, broken in 7cd1cf32ae69
2016-10-04 19:47:11 +02:00
mathieui
b88d2ecd77
Add more checks in the XEP-0060 stanza building
...
Try to not append slixmpp stanzas to ElementTree objects.
2016-10-04 19:31:49 +02:00
mathieui
e691850a2b
Fix XEP-0128
...
Broken since 125336aeee6 due to unforeseen consequences of a variable
removal.
2016-10-04 19:26:03 +02:00
mathieui
d4bff8dee6
Fix XEP-0009
...
Broken since 3a9b45e4f because of an overzealous cleanup.
2016-10-04 19:23:21 +02:00
mathieui
46a90749f8
Fix uses of super() in the codebase
...
Fix #3165 , we don’t need to use the long form to get the superobject in
our supported python versions.
2016-09-30 21:25:36 +02:00
mathieui
2586abc0d3
Fix xep-0050 stanza
...
broken in 3a9b45e4f279
2016-09-20 20:51:21 +02:00
Emmanuel Gil Peyrot
813b45aded
XEP-0045: Remove support for old-style {get,set,del}TitleCase methods.
2016-09-21 01:28:24 +09:00
Emmanuel Gil Peyrot
3a9b45e4f2
ElementBase: Remove deprecated find() and findall() methods.
2016-09-20 16:45:29 +09:00
Emmanuel Gil Peyrot
b8e091233e
XEP-0004: Remove deprecated getXML() and fromXML() methods.
2016-09-20 16:34:48 +09:00
Emmanuel Gil Peyrot
125336aeee
Remove locking from static disco.
2016-09-20 16:23:02 +09:00
Emmanuel Gil Peyrot
7cd1cf32ae
Various XEPs: Remove deprecated aliases.
2016-09-20 16:23:02 +09:00
Emmanuel Gil Peyrot
d099e353a4
Implement XEP-0333: Chat Markers.
2016-08-26 22:42:24 +01:00
mathieui
52cd8f4b22
Don’t trigger presence events on MUC presence
...
Specifically, previously, each MUC would be added as a roster item, and
then each join presence would be counted as a resource of that item,
triggering 1 to 5 events and more backend logic in slixmpp.
As a result, joining big rooms is tremendously slow, (JID() calls,
event() calls, __getitem__ calls for nothing), and takes RAM (a quick
tracemalloc tells me around 1 MiB for 3500 participants, i.e. 2 big IRC
rooms). Those resources may not necessarily be cleaned properly, leading
to memory leaks on long-term usage.
This is a micro-optimization that adds an attribute to roster items so
that MUC room events can be ignored safely while not affecting common
roster usage.
2016-08-22 01:29:07 +02:00