Maxime “pep” Buquet
0042108a67
poezio/poezio#3472 : Ensure tz is correctly set when offset is an int
...
Thanks lovetox!
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-03 23:16:37 +01:00
Georg Lukas
6b1b58a339
XEP-0199: use new 0-timeout reconnect() with reason
2019-03-26 12:09:43 +01:00
Maxime “pep” Buquet
2dda6b80d4
Partially fix poezio/poezio#3452 . Prevent groupchat_subject
from triggered sent when body or thread are in the message.
...
0045 says:
> The subject is changed by sending a message of type "groupchat" to the
> <room@service>, where the <message/> MUST contain a <subject/> element that
> specifies the new subject but MUST NOT contain a <body/> element (or a
> <thread/> element). In accordance with the core definition of XMPP, other child
> elements are allowed (although the entity that receives them might ignore
> them).
>
> Note: A message with a <subject/> and a <body/> or a <subject/> and a <thread/>
> is a legitimate message, but it SHALL NOT be interpreted as a subject change.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-03-23 17:06:07 +00:00
Maxime “pep” Buquet
6a06881d8b
xep_0030: fix typo on 'remote' in get_info docstring
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-03-05 00:00:14 +00:00
Maxime “pep” Buquet
88260cc240
xep_0380: Add add_eme method
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-02-23 12:54:56 +00:00
Maxime “pep” Buquet
e9f2f503b8
xep_0380: Remove remove_handler call in plugin_end
...
Remove probable copy paste fail in EME plugin_end handler.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-02-23 12:36:40 +00:00
mathieui
9cab02438b
Fix XEP-0335
2019-02-02 15:41:55 +01:00
Link Mauve
d85d8f4479
Merge branch 'xep-0335' into 'master'
...
Add xep_0335: JSON Containers
See merge request poezio/slixmpp!5
2019-01-22 19:28:38 +01:00
Emmanuel Gil Peyrot
fb75f7cda9
Stop requesting avatar without the intervention of the client.
2019-01-22 15:12:00 +01:00
Emmanuel Gil Peyrot
7cd73b594e
XEP-0223: Fix default access_model, it MUST be whitelist.
2019-01-17 12:08:51 +01:00
Emmanuel Gil Peyrot
33370e42f1
XEP-0363: Use a specific exception for HTTP errors
2018-11-20 07:44:09 +01:00
Florian Klien
4699861925
catch http upload errors on upload
2018-11-20 07:34:56 +01:00
Emmanuel Gil Peyrot
e241d4e3c7
XEP-0030: Don’t call the timeout_callback on each domain which doesn’t reply to disco#info.
2018-10-27 23:21:27 +02:00
Emmanuel Gil Peyrot
bd22a41a78
XEP-0363: Also check for disco#info’s feature instead of just the identity.
2018-10-27 23:14:39 +02:00
Emmanuel Gil Peyrot
a29a29227a
XEP-0363: Add a domain argument to discover an upload service on a specific domain.
2018-10-27 22:51:04 +02:00
Florian Klien
d4d542b741
fixing uncaught async exceptions due to missing await
...
fixes uncaught exceptions in the event loop.
passing timeout and timeout_callback through.
2018-10-27 22:51:04 +02:00
mathieui
809c500002
Add the loop parameters at places where it has been forgotten
2018-10-09 12:34:56 +02:00
Maxime “pep” Buquet
31f5e84671
Add xep_0335: JSON Containers
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2018-09-16 22:13:41 +01:00
Emmanuel Gil Peyrot
9f6fa65139
examples, tests: Replace all @asyncio.coroutines with proper async functions.
2018-08-19 17:47:26 +01:00
Emmanuel Gil Peyrot
62661ee04f
xep_0092: Return <service-unavailable/> instead. Fixes #3415 .
2018-08-08 16:52:40 +02:00
Emmanuel Gil Peyrot
37d1f2a6b0
xep_0092: Send a <forbidden/> error if we don’t want to send our version. (thanks lovetox!)
2018-08-08 16:49:16 +02:00
mathieui
a9abed6151
xep-0054: XMPP clients should not reply to vcard "get" requests
2018-08-07 21:30:13 +02:00
Emmanuel Gil Peyrot
59d4420739
XEP-0323: Display the requested time in addition to the current time on error.
2018-07-29 10:37:28 +02:00
Emmanuel Gil Peyrot
a88f317bbf
XEP-0009: Fix invalid function name under Python 3.7.
2018-07-24 18:21:03 +02:00
Link Mauve
2fc2a88970
Merge branch 'factor_find_identities' into 'master'
...
Factor find identities
See merge request poezio/slixmpp!2
2018-07-22 12:49:37 +02:00
Emmanuel Gil Peyrot
3502480384
Switch from @asyncio.coroutine to async def everywhere.
2018-07-01 18:46:33 +02:00
Maxime “pep” Buquet
caae713dd6
xep_0030: rename find_identities; return all domain infos and let caller filter itself
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2018-07-01 01:36:26 +01:00
Maxime “pep” Buquet
df0198abfe
xep_0030: Add callback parameter to find_identities
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2018-07-01 01:32:00 +01:00
Maxime “pep” Buquet
c20f4bf5fa
xep_0030: Add cached parameter to find_identities, defaults to True
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2018-07-01 01:29:31 +01:00
Maxime “pep” Buquet
9740e93aeb
xep_0030: Pass kwargs down in find_identities
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2018-07-01 01:29:31 +01:00
Maxime “pep” Buquet
e7872aaa29
xep_0030: Use self directly as we're already in disco
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2018-07-01 01:29:31 +01:00
Maxime “pep” Buquet
037706552c
Factor out fetching of identities in xep_0363 to xep_0030
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2018-07-01 01:29:31 +01:00
Maxime “pep” Buquet
b881c6729b
xep_0363: Remove unused parameters to find_upload_services
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2018-07-01 01:29:31 +01:00
Emmanuel Gil Peyrot
66909aafb3
XEP-0153: Prevent a panic when the BINVAL is invalid.
2018-06-23 14:34:24 +02:00
Emmanuel Gil Peyrot
fe66c022ad
Revert "XEP-0060: Add support for node configuration."
...
This reverts commit dd7f67d10d32dadd12a841847f438b457d662b1e.
2018-05-13 21:12:46 +02:00
Emmanuel Gil Peyrot
dd7f67d10d
XEP-0060: Add support for node configuration.
2018-05-13 20:47:21 +02:00
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