mathieui
dcaf812a28
ci: build cython module for itests
2024-02-09 23:28:15 +01:00
mathieui
ae4de043d2
itests: fix default server call
2024-02-09 23:11:29 +01:00
mathieui
998bbb80ad
itests: hardcode default MUC server
2024-02-09 23:07:32 +01:00
mathieui
5a5b36ab39
xmlstream: make mypy even happier
2024-02-09 22:58:20 +01:00
mathieui
f151f0a7ab
xmlstream/componentxmpp: fix some typing issues
...
Make mypy happier
2024-02-09 22:55:20 +01:00
mathieui
2424a3b36f
slixtest: cleanup loop only if needed
...
if not, get_event_loop will throw, we can ignore this
2024-02-09 22:49:47 +01:00
mathieui
1c4bbbce8e
ci: fix mypy step
2024-02-09 21:41:03 +01:00
mathieui
66d552d057
xep_0317: Fix compatibility with python < 3.9
2024-02-09 21:32:19 +01:00
nicoco
b8205a9ae4
Update plugin: XEP-0317 (hats)
...
Merge changes from nicoco's MR that I missed, improving tests and
interface.
2024-02-09 21:06:14 +01:00
nicoco
85b7210115
XEP-0264: Jingle Content Thumbnails (new plugin)
...
Cheogram actually uses it with SIMS to embed
a blurhash preview in the stanza.
2024-02-09 12:10:12 +01:00
nicoco
909c865524
XEP-0313: Do not try to parse date for fields without value.
...
Without this we end up passing "None"
instead of a str to the date parser,
which raises a TypeError.
It happens if you try to provide a form
to be filled, when slixmpp acts as a MAM
*server*.
2024-02-09 11:51:34 +01:00
nicoco
586d2f5107
XEP-0313: Add support for flipped page
2024-02-08 20:45:48 +01:00
nicoco
9f7260747f
Add XEP_0461 to PluginDict
2024-02-08 20:34:16 +01:00
mathieui
c41209510a
xep_049: implement bookmarks pinning stanzas
2024-02-04 11:59:36 +01:00
mathieui
9266486f46
xep_0317: add initial stanza support for hats
2024-02-04 11:32:24 +01:00
mathieui
5226858e0c
Release 1.8.5
2024-02-02 01:59:31 +01:00
mathieui
7128ea249b
Fix running process() with a timeout ( closes #3505 )
2024-02-02 01:00:25 +01:00
Maxime “pep” Buquet
992d80dd09
SCRAM: Restrict tls-unique to TLSv1.2
...
And prepare the code to work when CPython implements tls-exporter for
TLSv1.3.
This adds tls_version and binding_proposed attributes to the security
properties so we can detect if we were offerred channel binding SASL
mechanisms, and which TLS version we are on.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2024-02-02 00:56:40 +01:00
mathieui
c25305e80f
componentxmpp: fix default host for components
2023-12-29 14:13:41 +01:00
mathieui
6765f84133
tests: close event loop at exit
...
prevents a nice segfault
2023-12-29 13:53:58 +01:00
mathieui
31fe7f7e06
[CI] add woodpecker CI
2023-12-29 13:53:58 +01:00
nicoco
84a7ac020f
XEP-0461: rely on XEP-0428 for fallback
...
Breaks the previous fallback helpers, we now
rely on XEP-0461 instead
2023-12-28 16:38:37 +00:00
nicoco
331c1c1e21
XEP-0428: add fallback body and subject elements
...
+ tests
+ helpers to strip the fallback content
2023-12-28 16:38:37 +00:00
nicoco
28a60c22e2
ElementBase: add weak ref to parent when using append()
2023-12-28 16:38:37 +00:00
nicoco
af934b5bdf
fix slixmpp.xmlstream.__all__
2023-12-28 16:38:37 +00:00
genghis
897f876504
Correct Slixfeed title and add groupchat link to Stable Diffusion
2023-12-28 16:04:19 +00:00
genghis
2888be17ab
Correct groupchat link for WhisperBot
2023-12-28 16:04:19 +00:00
genghis
975e31229c
Correct links so they match to their respective text
2023-12-28 16:04:19 +00:00
genghis
6e9e66139d
Add Stable Diffusion
2023-12-28 16:04:19 +00:00
genghis
380ac04d52
Update docs/projects.rst
2023-12-28 16:04:19 +00:00
genghis
9e5b530607
Update docs/projects.rst
2023-12-28 16:04:19 +00:00
genghis
71de274fab
Update docs/projects.rst
2023-12-28 16:04:19 +00:00
genghis
5a0b02378d
Add document Projects
...
Bots and Services utilizing Slixmpp
2023-12-28 16:04:19 +00:00
sxavier
9fc82e9e6f
xep_0221: Add documentation overview and example
2023-12-28 16:01:19 +00:00
nicoco
ca90d3908e
xep-0115: perf: avoid simultaneous disco info queries for the same verstring
2023-12-28 15:56:44 +00:00
Daniel Roschka
7de5cbcf33
Fix connect parameters used for follow-up calls
...
XMLStream.connect() is supposed to persist the parameters
it gets called with to allow follow-up calls to call
XMLStream.connect() without any parameters to result in a connection
with the same properties as the original one. That's for example used by
XMLStream.reconnect() when establishing a new connection.
Unfortunately that was broken for some of the parameters and resulted
different TLS related settings on reconnections. This commit fixes that.
2023-12-27 11:45:04 +01:00
Nicolas Cedilnik
76a11d4899
xep0356: implement IQ privilege
...
Also included:
- correctly handle privileges from different
servers
- check that privileges have been granted before
attempting to send something and raise
PermissionError if not
- use dataclass and enums to store permissions instead of
untyped dict
2023-12-19 14:14:16 +00:00
mathieui
dcfa0f20f9
[docs] add readthedocs.yaml
2023-11-13 19:38:48 +01:00
mathieui
7732af8991
Move references from lab.louiz.org to codeberg
2023-07-06 15:26:57 +02:00
nicoco
25c28ff5d1
xep_0461/add_quoted_fallback: add optional nickname argument
...
+ a little docstring that doesn't hurt
2023-06-05 20:48:38 +02:00
nicoco
e3e0d8f43e
xep_0313/fin: add 'stable' and 'complete' attribs
2023-06-05 14:18:07 +02:00
nicoco
13729e47a6
add xeps 0385 and 0447 to plugins.PLUGINS
2023-06-05 14:18:07 +02:00
nicoco
f12860bfad
fix misleading error msg
...
plugins.__all__ became plugins.PLUGINS a few commits ago
2023-06-05 14:18:07 +02:00
mathieui
bcbc7281e7
Release 1.8.4
2023-05-28 12:59:22 +02:00
mathieui
8787aa1064
Merge branch 'fix_error_ns_for_components_for_real' into 'master'
...
ComponentXMPP: fix fix_error_ns option
See merge request poezio/slixmpp!247
2023-05-11 19:08:22 +00:00
nicoco
f3522eb84b
ComponentXMPP: fix fix_error_ns option
...
self.default_ns is defined in BaseXMPP.__init__(),
so ComponentXMPP._fix_error_ns() has to be called
later
2023-05-11 21:06:11 +02:00
Link Mauve
da9646cdaa
Merge branch 'fix-register' into 'master'
...
Fix registration
See merge request poezio/slixmpp!246
2023-05-01 18:04:20 +00:00
Emmanuel Gil Peyrot
db1fc5fbc5
xmlstream: Fix registration
...
This iq nonza wasn’t marked as allowed to be sent on an unauthenticated
stream.
2023-05-01 19:50:26 +02:00
mathieui
209554e63f
Merge branch 'ci-and-python-3.7' into 'master'
...
Fix CI issues and python 3.7 compatibility
See merge request poezio/slixmpp!244
2023-04-18 17:43:21 +00:00
mathieui
2d02ef9bcb
exceptions: Fix python 3.7 compatibility
2023-04-18 19:41:02 +02:00
mathieui
18c3db4d6e
ci: update python images
2023-04-18 19:41:02 +02:00
Nicoco K
6d6fdc6419
Merge branch 'fix-test-0377' into 'master'
...
Fix test for 0377 and update DOAP
See merge request poezio/slixmpp!243
2023-04-04 10:49:29 +00:00
Emmanuel Gil Peyrot
4936fb06bf
XEP-0377: Update the DOAP
2023-04-04 12:45:53 +02:00
Emmanuel Gil Peyrot
5e47286445
XEP-0377: Update tests against the latest version
2023-04-04 12:45:53 +02:00
Link Mauve
8bead23799
Merge branch 'xep402-extensions' into 'master'
...
xep0402: add password and extension
See merge request poezio/slixmpp!242
2023-04-04 10:05:01 +00:00
nicoco
56c906f207
xep0402: add password and extension
2023-04-04 09:20:50 +02:00
Maxime Buquet
876c82037f
Merge branch 'jid-barejid' into 'master'
...
jid: add 'bare' parameter to JID to discard resource
See merge request poezio/slixmpp!238
2023-04-03 11:18:03 +00:00
Link Mauve
fae4a38e84
Merge branch '377-nsbump' into 'master'
...
XEP-0377: Update to latest revision (bump ns)
See merge request poezio/slixmpp!239
2023-04-03 11:09:43 +00:00
Maxime “pep” Buquet
2b59d299a1
XEP-0377: Update to latest revision
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2023-04-03 13:01:45 +02:00
Maxime Buquet
51a4efb0f4
Merge branch 'xep402' into 'master'
...
Add support for XEP0402 (PEP Native bookmarks)
See merge request poezio/slixmpp!240
2023-04-03 09:23:25 +00:00
Nicolas Cedilnik
8f77bd4ee5
Add support for XEP0402 (PEP Native bookmarks)
2023-04-03 05:47:46 +02:00
Maxime “pep” Buquet
71128349a4
jid: add 'bare' parameter to JID to discard resource
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2023-03-18 20:28:54 +01:00
Maxime Buquet
bc2cebae6c
Merge branch 'disco-tasks' into 'master'
...
xep_0030: asyncio.wait takes tasks
See merge request poezio/slixmpp!228
2023-03-07 19:19:10 +00:00
mathieui
2080d08d63
Merge branch 'component-errors' into 'master'
...
Fix error namespace for components
Closes #3476 and #3474
See merge request poezio/slixmpp!237
2023-03-07 19:12:32 +00:00
nicoco
e16f72d32d
fix error namespace for ComponentXMPP
...
in SlixTest, if mode=="component", restore
jabber:client namespace afterwards
Fixes #3476
Fixes #3474
2023-03-07 11:04:35 +01:00
Maxime Buquet
4fa068da54
Merge branch 'xep-0030-component' into 'master'
...
xep_0030: small fixes for components
See merge request poezio/slixmpp!236
2023-02-25 10:47:29 +00:00
nicoco
21e5cd4435
xep_0030: get_items(): fix ifrom for local calls
...
kwargs can never have 'ifrom' since it's in the
method signature
2023-02-25 10:29:21 +01:00
nicoco
1a40699bcc
xep_0030: do not send IQ without 'from' attr when component
2023-02-25 10:27:56 +01:00
Maxime Buquet
ebb8bd1e71
Merge branch 'better-errors' into 'master'
...
Improve errors
See merge request poezio/slixmpp!230
2023-02-24 14:41:09 +00:00
nicoco
78b42bdbbe
Message.reply(): do not use bare jid if component
...
Components are likely to be MUC services more than
muc participants, and reply() is used when XMPPError
is raised, where it makes no sense to strip the resource
2023-02-24 15:29:05 +01:00
nicoco
abd3f40e96
XMPPError: add optional by attribute
...
so it is added to the reply stanzas
2023-02-24 15:29:05 +01:00
nicoco
b6f148e4e6
errors: make error types and conditions Literals
...
and set recommended defaults for type based on condition
2023-02-24 15:29:05 +01:00
Maxime Buquet
968fb0bac3
Merge branch 'xep0447' into 'master'
...
XEP-0447: minimal support (outgoing)
See merge request poezio/slixmpp!235
2023-02-24 14:12:45 +00:00
Maxime Buquet
8dcbcbf8a0
Merge branch 'xep0385' into 'master'
...
XEP-0385: minimal support
See merge request poezio/slixmpp!234
2023-02-24 14:12:38 +00:00
Maxime Buquet
de7b2d33a3
Merge branch 'xep-0461-fixes' into 'master'
...
XEP-0461: fixes
See merge request poezio/slixmpp!233
2023-02-23 23:42:19 +00:00
Maxime Buquet
fd1af054c5
Merge branch 'xep-0054-fix-no-vcard' into 'master'
...
xep_0054: raise item-not-found instead of trying to call None.send()
See merge request poezio/slixmpp!232
2023-02-23 23:41:47 +00:00
Maxime Buquet
e34fbfb28f
Merge branch 'adhoc-partial-coroutine' into 'master'
...
xep_0050:allow partial coroutines as handlers
See merge request poezio/slixmpp!231
2023-02-23 23:40:42 +00:00
nicoco
af16832ad0
XEP-0447: minimal support (outgoing)
2023-02-24 00:22:42 +01:00
nicoco
40a857de65
XEP-0461: fix char counting
...
I think this time I got it right, confirmed
against client implementations (dino and movim)
2023-02-24 00:15:34 +01:00
nicoco
79ffa1668f
XEP-0461: fix fallback namespace
...
the XEP should be updated soon, confirmed by author,
other implementations use this namespace
2023-02-24 00:15:34 +01:00
nicoco
b4b1efe058
XEP-0385: minimal support
...
- includes bits of other required XEPs
- only implements 'outgoing' SIMS
2023-02-23 23:49:13 +01:00
nicoco
de358464d0
xep_0054: raise item-not-found instead of trying to call None.send()
2023-02-23 23:37:31 +01:00
nicoco
92b4f2a7eb
xep_0050:allow partial coroutines as handlers
2023-02-23 23:33:13 +01:00
Maxime Buquet
1f934d375c
Merge branch 'fix-tests' into 'master'
...
Fix tests and stop misusing __all__
See merge request poezio/slixmpp!229
2023-02-23 17:04:13 +00:00
nicoco
700ce6b32e
xep0461: fix typo in test
2023-02-23 16:53:22 +01:00
nicoco
5efa9804ba
xep0292: test: declare suite
2023-02-23 16:53:22 +01:00
nicoco
9b0be1ca2b
stop misusing __all__ for default plugin list
...
this fixes tests by renaming the list of default plugins
from __all__ (which has a special meaning) to a separate
list called PLUGINS
no need to put BasePlugin in __all__ after all
if we don't use __all__ at all
2023-02-23 16:53:22 +01:00
Maxime “pep” Buquet
5c19f16287
xep_0030: asyncio.wait takes tasks
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2023-02-15 11:55:57 +01:00
Maxime Buquet
af07864cbb
Merge branch 'fix-caps-fetch' into 'master'
...
XEP-0115: fix a missing await in caps fetching
See merge request poezio/slixmpp!227
2023-01-30 19:46:53 +00:00
mathieui
dc4b1c7367
XEP-0115: fix a missing await in caps fetching
2023-01-30 20:37:16 +01:00
j
4a6064772c
xep_0027: Ensure data is a str before handling it
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2023-01-26 17:40:47 +01:00
Maxime “pep” Buquet
80a89061f1
xep_0045: Remove debug print. thanks kalkin
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2023-01-07 15:07:28 +01:00
Maxime “pep” Buquet
8f4d8f76d1
doap: fix 454 note entry
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2023-01-04 21:24:17 +01:00
Maxime Buquet
656248ede7
Merge branch 'xep-0292' into 'master'
...
implements XEP-0292 (vCard4 over XMPP)
See merge request poezio/slixmpp!221
2022-11-28 12:05:30 +00:00
Maxime Buquet
980afe791f
Merge branch 'add-public-names-in-_all_' into 'master'
...
Add public names in all
See merge request poezio/slixmpp!225
2022-11-28 12:04:28 +00:00
nicoco
3725177d0b
add OptJidStr to types.__all__
2022-11-28 13:03:05 +01:00
nicoco
26fb0d1f91
add BasePlugin to plugins.__all__
2022-11-28 13:03:03 +01:00
Maxime Buquet
5eb17e7633
Merge branch 'xep0461-fallback-helper' into 'master'
...
XEP-0461 (replies) improvements
See merge request poezio/slixmpp!224
2022-11-28 11:59:00 +00:00
nicoco
fdca7d82c4
XEP-0461: fix character counting
...
Turns out we need to include the fallback/end code point,
unlike python slicing conventions
2022-11-28 07:15:26 +01:00
nicoco
9b89401b36
XEP-0461: add get fallback body helper
2022-11-22 10:23:52 +01:00
nicoco
7300f1285e
XEP-0461: add to plugins.__all__
2022-11-22 08:49:00 +01:00
nicoco
9b51be1e17
XEP-0461: add quoted fallback helper
2022-11-22 08:49:00 +01:00
nicoco
89b1e1e682
XEP-0461: use integers for fallback start/end
2022-11-22 08:45:04 +01:00
Maxime Buquet
a7501abe56
Merge branch 'xep0030-iqkwargs' into 'master'
...
xep_0030: allow extra args in get_info_from_domain
See merge request poezio/slixmpp!223
2022-11-15 10:13:49 +00:00
nicoco
6940e4276b
xep_0030: allow extra args in get_info_from_domain
2022-11-15 09:23:50 +01:00
Maxime “pep” Buquet
752f4258df
Release 1.8.3
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2022-11-12 21:39:50 +01:00
Maxime “pep” Buquet
b60b1b985d
CVE-2022-45197: Fix missing certificate hostname validation
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2022-11-12 21:36:11 +01:00
Maxime Buquet
e93e43df66
Merge branch 'fix-adhoc-crash' into 'master'
...
fix crash on adhoc command with bad clients
See merge request poezio/slixmpp!222
2022-11-06 12:55:56 +00:00
nicoco
cfd1af88eb
fix crash on adhoc command with bad clients
...
If a command has no "next" handler, slixmpp
crashes if a client acts as if there was a
next step.
This raises an XMPPError instead
2022-11-06 08:12:37 +01:00
nicoco
65636b8cce
implements XEP-0292 (vCard4 over XMPP)
2022-11-04 09:36:25 +01:00
Maxime Buquet
7a0fb97083
Merge branch 'restore-stringprep-warning' into 'master'
...
logger: remove NullHandler for the "slixmpp" handler
See merge request poezio/slixmpp!220
2022-10-03 08:20:19 +00:00
nicoco
189bbcce19
logger: remove NullHandler for the "slixmpp" handler
...
This does not seem to accomplish anything besides
hiding the "using the slow, pure python stringprep"
warning, unless you import logging and add another
handler before to the "slixmpp" logger *BEFORE*
importing slixmpp.
2022-10-03 10:16:02 +02:00
Maxime Buquet
79607e43f1
Merge branch 'fix-0084' into 'master'
...
xep_0084: fix typo and getters
See merge request poezio/slixmpp!219
2022-09-23 08:59:05 +00:00
nicoco
e062181f84
xep_0084: fix typo and getters
...
"with" instead of "width"; wrong syntax for getters
2022-09-22 23:19:16 +02:00
mathieui
97b0c7ffac
Merge branch 'xep0055' into 'master'
...
Add XEP-0055 (Jabber Search)
See merge request poezio/slixmpp!204
2022-09-12 18:18:51 +00:00
nicoco
c2ece57dee
Add XEP-0055 (Jabber Search)
2022-09-11 23:22:44 +02:00
mathieui
afdfa1ee57
Merge branch 'xep0363-as-component' into 'master'
...
XEP-0363: Fix upload service auto discovery for components
See merge request poezio/slixmpp!207
2022-09-09 16:07:46 +00:00
mathieui
cba5dc7ddc
Merge branch 'component-ifrom' into 'master'
...
xep_0030: fix ifrom for disco queries sent by components
See merge request poezio/slixmpp!216
2022-09-09 16:06:38 +00:00
mathieui
b3a6c7a4ea
Merge branch 'aiodns-gethostbyname' into 'master'
...
Use gethostbyname when using aiodns
See merge request poezio/slixmpp!212
2022-09-09 16:04:14 +00:00
mathieui
11e27d1d7d
Merge branch 'mypy-workaround' into 'master'
...
Fix gitlab pipelines
See merge request poezio/slixmpp!217
2022-09-09 16:02:18 +00:00
nicoco
fbdff30dda
fix emoji==2.0.0 compatibility
2022-08-29 00:59:14 +02:00
nicoco
62701bc562
xmlstream: ignore task type (mypy)
...
This is not satisfying, but having gitlab pipelines running would be nice, wouldn't it?
2022-08-29 00:20:36 +02:00
nicoco
b14918808c
xep_0030: fix ifrom for disco queries sent by components
...
xep_0030 automatically sends disco queries with ifrom=None
Prosody's mod_component had a workaround to allow this non-standard behaviour, but it will change in a future release.
2022-08-29 00:03:55 +02:00
Link Mauve
f5cb9fe66b
Merge branch 'doap-sasl-anon' into 'master'
...
DOAP: Add 0175. It's been here forever
See merge request poezio/slixmpp!215
2022-08-23 09:18:02 +00:00
Maxime “pep” Buquet
8bd53f7098
DOAP: Add 0175. It's been here forever
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2022-08-23 11:12:26 +02:00
Link Mauve
c955cf1c66
Merge branch 'xep-0461' into 'master'
...
XEP-0461: Message Replies
See merge request poezio/slixmpp!213
2022-08-21 12:24:08 +00:00
Maxime Buquet
6904ae63f5
Merge branch 'optional-setters' into 'master'
...
JID: Make node and resource setters accept None
See merge request poezio/slixmpp!214
2022-08-21 12:22:17 +00:00
Emmanuel Gil Peyrot
1caada197a
JID: Make node and resource setters accept None
...
This is the proper way to unset these.
2022-08-21 14:18:53 +02:00
nicoco
450aaa7f86
XEP-0461: Message Replies
2022-08-20 13:35:38 +02:00
Daniel Roschka
d43c83800e
Use gethostbyname when using aiodns
...
Slixmpp behaves differently when resolving host names, whether aiodns
is used or not. With aiodns only DNS is used, while without
`asyncio.loop.getaddrinfo()` is used instead, which utilizes the Name
Service Switch (NSS) to resolve host names by other means (hosts-file,
mDNS, ...) as well.
To unify the behavior, this replaces the use of
`aiodns.DNSResolver().query()` with
`aiodns.DNSResolver().gethostbyname()`. This makes the behavior
resolving host names more consistent between using aiodns or not, as
both now honor the NSS configuration and removes the need for the
previously existing workaround to resolve localhost.
2022-07-31 13:15:25 +02:00
nicoco
14786abd34
Revert "Make it clear that filename does *not* have to be path, and is mandatory"
...
This reverts commit ed820bf551 .
2022-07-16 20:23:48 +02:00
Maxime Buquet
1f47acaec1
Merge branch 'fix-xep_0115-static' into 'master'
...
XEP-0115: Make get_caps() async
See merge request poezio/slixmpp!203
2022-07-16 19:02:06 +02:00
nicoco
ed820bf551
Make it clear that filename does *not* have to be path, and is mandatory
2022-07-16 17:17:22 +02:00
nicoco
afedfa4b06
Merge branch 'master' of https://lab.louiz.org/poezio/slixmpp
2022-07-16 17:08:21 +02:00
Maxime Buquet
5998069203
Merge branch 'mini_dateutil-no-more' into 'master'
...
Remove mini_dateutil and replace it with datetime
See merge request poezio/slixmpp!210
2022-07-12 13:39:02 +02:00
Maxime Buquet
356f16f5af
Merge branch 'prevent-naive-datetime' into 'master'
...
XEP-0203: Prevent naïve datetime from being passed
Closes #3471
See merge request poezio/slixmpp!211
2022-07-12 13:38:52 +02:00
Link Mauve
b8f301b26f
Merge branch 'affs-outcast-jid' into 'master'
...
xep_0045: Require JID when setting outcast affiliation
See merge request poezio/slixmpp!188
2022-07-12 13:28:02 +02:00
Link Mauve
ffaeb31219
Merge branch 'nicoco-master-patch-90506' into 'master'
...
Add xep_0356 to plugins.__all__
See merge request poezio/slixmpp!201
2022-07-12 13:26:54 +02:00
Link Mauve
9560f39de7
Merge branch 'xep0356-v0.4' into 'master'
...
XEP-0356: namespace version bump
See merge request poezio/slixmpp!206
2022-07-12 13:26:14 +02:00
Link Mauve
f7a38a028a
Merge branch 'default-to-CAs' into 'master'
...
xmlstream: load default CA store by default
See merge request poezio/slixmpp!209
2022-07-12 13:24:32 +02:00
Emmanuel Gil Peyrot
65d70fe417
XEP-0203: Prevent naïve datetime from being passed
...
The specification says “The format MUST adhere to the dateTime format
specified in XEP-0082 and MUST be expressed in UTC.”
We now respect this requirement, by rejecting naïve datetimes with a
ValueError exception, and converting the passed datetime to UTC.
Fixes #3471 .
2022-07-12 13:15:31 +02:00
Emmanuel Gil Peyrot
108a256537
thirdparty: Remove the mini_dateutil module
...
The builtin datetime module already provides the same features, there is
no need to carry that code any longer.
2022-07-12 12:55:20 +02:00
Emmanuel Gil Peyrot
78a5f79240
XEP-0202: Remove usage of mini_dateutil
...
Like the previous commit, we now use the builtin datetime module always.
2022-07-12 12:54:35 +02:00
Emmanuel Gil Peyrot
fc63768cfc
XEP-0082: Move from mini_dateutil to datetime
...
Since datetime got merged into Python (probably around py3k), it’s now
usable for all of our needs and so we can do away with the old fallback.
2022-07-12 12:51:22 +02:00
Maxime “pep” Buquet
90e79af18a
xmlstream: load default CA store by default
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2022-07-11 14:46:00 +02:00
Link Mauve
5e5a741994
Merge branch 'dns-reconnect' into 'master'
...
Fix delayed reconnect after DNS failure
See merge request poezio/slixmpp!208
2022-06-22 11:50:12 +02:00
Georg Lukas
b44ab17c8f
Fix delayed reconnect after DNS failure
...
The XML stream will re-schedule a reconnect on socket errors, except
for DNS failures. If a user has no uplink connection, then DNS will
also fail, preventing an automatic reconnection.
This patch consolidates the two code paths and sets a maximum back-off
time of 5min (300s).
2022-06-22 11:39:44 +02:00
Nicolas Cedilnik
afb5419b68
XEP-0363: Fix upload service auto discovery for components
2022-06-18 06:09:36 +02:00
Nicolas Cedilnik
a1a5f3984d
XEP-0356: namespace version bump
2022-06-09 16:45:36 +02:00
Nicolas Cedilnik
8eb8769862
XEP-0115: Make get_caps() async
2022-06-09 15:33:02 +02:00
Link Mauve
5ceb48bbcd
Merge branch 'origin-id-non-default' into 'master'
...
Change origin-id defaults to False
See merge request poezio/slixmpp!202
2022-05-28 17:44:42 +02:00
Maxime “pep” Buquet
916894ab7c
Change origin-id defaults to False
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2022-05-28 13:50:09 +02:00
Nicoco K
2b45c22fcb
Add xep_0356 to plugins.__all__
2022-05-19 14:40:45 +02:00
mathieui
566e7dc771
Merge branch 'nicoco-master-patch-38938' into 'master'
...
Fix typo in chat markers (fixes #3469 )
Closes #3469
See merge request poezio/slixmpp!199
2022-05-15 16:44:10 +02:00
Nicoco K
aa492f905c
Fix typo in chat markers ( fixes #3469 )
2022-05-15 07:48:00 +02:00
mathieui
e1a240ec6c
Merge branch 'release-version-1.8.2' into 'master'
...
Update version to 1.8.2
See merge request poezio/slixmpp!197
2022-04-06 22:44:40 +02:00
mathieui
771839242c
Update version to 1.8.2
2022-04-06 22:41:40 +02:00
mathieui
8bac744009
Merge branch 'starttls-exception' into 'master'
...
features_starttls/Proceed: raise exception on InvalidCABundle
See merge request poezio/slixmpp!196
2022-04-05 20:15:49 +02:00
Maxime “pep” Buquet
88d2f5dae4
features_starttls/Proceed: raise exception on InvalidCABundle
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2022-04-05 19:42:49 +02:00
mathieui
f7902d056e
Merge branch 'exn-invalidcabundle-arg' into 'master'
...
Pass in useful value when raising InvalidCABundle
See merge request poezio/slixmpp!195
2022-04-05 19:42:06 +02:00
Maxime “pep” Buquet
41afbb10df
Pass in useful value when raising InvalidCABundle
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2022-04-05 01:24:14 +02:00
mathieui
aca4addb9c
Merge branch 'fix-old-session' into 'master'
...
stream features: fix old "session" establishment
Closes #3468
See merge request poezio/slixmpp!193
2022-04-01 21:01:31 +02:00
mathieui
914ce40fd5
stream features: fix old "session" establishment
...
As it is and old and deprecated code path, nobody noticed that it was
broken by the new filtering code.
Fix #3468
2022-04-01 20:56:02 +02:00
Maxime Buquet
82ff68cfac
Merge branch 'upload-encrypt' into 'master'
...
XEP-0454: OMEMO Media Sharing
See merge request poezio/slixmpp!189
2022-03-21 17:01:40 +01:00
Maxime “pep” Buquet
28d44ecf74
xep_0454: str.removeprefix is available since 3.9
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2022-03-20 21:34:55 +01:00
mathieui
fcec6742cf
Merge branch 'release-version-1.8.1' into 'master'
...
Update version to 1.8.1
See merge request poezio/slixmpp!192
2022-03-20 20:26:25 +01:00
mathieui
fedbb248ec
Update version to 1.8.1
2022-03-20 20:22:52 +01:00
mathieui
e8679fe32b
Merge branch 'allow-disabling-defusedxml' into 'master'
...
Do not use defusedxml by default if available
See merge request poezio/slixmpp!190
2022-03-20 20:19:54 +01:00
Maxime “pep” Buquet
06e4e480c1
xep_0454: keep original filename extension if available
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2022-03-20 01:02:14 +01:00
Maxime “pep” Buquet
82ee250295
xep_0454: use staticmethods where possible
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2022-03-20 01:02:14 +01:00
Maxime “pep” Buquet
53d38a8115
setup.py: add cryptography in extras_require; update example
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2022-03-20 01:02:14 +01:00
mathieui
41d733e77f
Only defuse stdlib through an env var
...
https://github.com/inducer/relate/issues/905
2022-03-19 16:15:03 +01:00
Maxime “pep” Buquet
0fba8fd7f8
doap: add 454 entry
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2022-03-19 10:31:34 +01:00
Maxime “pep” Buquet
b899baabd8
xep_0454: also include finalize's result in the payload
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2022-03-19 10:31:34 +01:00
Maxime “pep” Buquet
acad41f3b7
xep_0454: Don't force content-type to application/octect-stream
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2022-03-19 10:31:34 +01:00
Maxime “pep” Buquet
bde5aaaf3e
examples/http_upload.py: Add --encrypt parameter to send encrypted files
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2022-03-19 10:31:34 +01:00
Maxime “pep” Buquet
7222ade0dd
xep_0454: Ensure format_url returns a str
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2022-03-19 10:31:34 +01:00
Maxime “pep” Buquet
14a6c7801d
tests: XEP-0454
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2022-03-19 10:31:34 +01:00
Maxime “pep” Buquet
b52540e49f
xep_0454: implement decrypt method
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2022-03-19 10:31:34 +01:00
Maxime “pep” Buquet
c1aeab328b
xep_0454: use streaming API from CipherContext
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2022-03-19 10:31:34 +01:00
Maxime “pep” Buquet
51644e301b
xep_0454: Add wrapper to xep_363's upload_file
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2022-03-19 10:31:34 +01:00
Maxime “pep” Buquet
bc8af3cc61
xep_0454: new plugin. OMEMO Media Sharing
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2022-03-19 10:31:34 +01:00
Maxime “pep” Buquet
3c08f471cf
xep_0363: change filename to Path
...
This shouldn't break anything as I'm not using Path specific APIs
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2022-03-19 10:31:34 +01:00
Maxime “pep” Buquet
54b724c28b
examples/http_upload: Add some typing
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2022-03-19 10:31:34 +01:00
mathieui
abd699593f
Merge branch 'fix-mypy' into 'master'
...
Fix mypy in CI
See merge request poezio/slixmpp!191
2022-03-19 00:07:55 +01:00
mathieui
4202ed4cd5
Fix mypy in CI
2022-03-19 00:04:56 +01:00
Maxime “pep” Buquet
60df4ef7aa
xep_0045: Require JID when setting outcast affiliation
...
Found out when reading poezio/poezio#3536 .
“An admin or owner can ban one or more users from a room. The ban MUST
be performed based on the occupant's bare JID.”
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2022-03-16 16:12:20 +01:00
mathieui
ad610c7ded
Fix the XEP-0444 stanza test
2022-03-07 21:31:13 +01:00
mathieui
e8f45dedfe
Merge branch 'release-1.8.0' into 'master'
...
Release 1.8.0
See merge request poezio/slixmpp!187
2022-02-27 22:25:34 +01:00
mathieui
51a7cad7e1
doap: add a 1.8.0 entry
2022-02-27 22:21:35 +01:00
mathieui
389a358996
version: increment to 1.8.0
2022-02-27 22:20:02 +01:00
mathieui
001e0c7060
Merge branch 'doc-update' into 'master'
...
Add documentation on how to replace proces()
See merge request poezio/slixmpp!186
2022-02-27 20:48:48 +01:00
mathieui
5c4c867dee
docs: add a page on how to remove process()
2022-02-27 20:33:26 +01:00
mathieui
b23b805dc5
docs: Fix some wrong references
2022-02-27 20:32:48 +01:00
mathieui
11b555af20
Merge branch 'fix-join-muc-wait' into 'master'
...
Fix join_muc_wait: end join only upon receiving the room subject
See merge request poezio/slixmpp!185
2022-02-27 20:30:12 +01:00
mathieui
06172ea896
XEP-0045: return occupants and history when join is complete
2022-02-27 18:11:10 +01:00
mathieui
815b7d5af7
Fix join_muc_wait: end join only upon receiving the room subject
2022-02-27 16:22:59 +01:00
mathieui
28fe68c7d3
Merge branch 'end-filter-run' into 'master'
...
fix: allow cancelling the run_filters coroutine
See merge request poezio/slixmpp!184
2022-02-18 22:29:02 +01:00
mathieui
d15a37e146
fix: allow cancelling the run_filters coroutine
...
otherwise it will leak forever into the event loop and generate
tracebacks when closing it
2022-02-16 22:11:19 +01:00
mathieui
98dba869c7
Merge branch 'deprecate-xmpp-process' into 'master'
...
deprecate XMLStream.process()
See merge request poezio/slixmpp!183
2022-02-16 21:26:03 +01:00
mathieui
bcb4495c6d
deprecate XMLStream.process()
2022-02-15 21:57:49 +01:00
mathieui
22b00c6073
Merge branch 'update-doc-yieldfrom' into 'master'
...
docs: remove yield from and fix some old changes
See merge request poezio/slixmpp!182
2022-02-15 20:58:20 +01:00
mathieui
a50bffae89
docs: remove yield from and fix some old changes
2022-02-15 20:54:36 +01:00
mathieui
92c3f69829
Merge branch 'fix-doap' into 'master'
...
doap: add missing 1.7.1 release and fix 1.7.0 link
See merge request poezio/slixmpp!181
2022-02-15 20:53:48 +01:00
mathieui
1e7d7bf8cb
Merge branch 'ibb-fix-races' into 'master'
...
fix: specific cases in xep-0047 with network race conditions
See merge request poezio/slixmpp!179
2022-02-07 19:03:31 +01:00
mathieui
53f0971fd0
doap: add missing 1.7.1 release and fix 1.7.0 link
2022-02-05 13:19:09 +01:00
mathieui
e543e22e78
fix: specific cases in xep-0047 with network race conditions
2022-02-05 12:38:48 +01:00
mathieui
714f9aae0d
Merge branch 'bugfix/xep_0009' into 'master'
...
xep-0009: fixed bugs
See merge request poezio/slixmpp!172
2022-02-04 23:11:28 +01:00
mathieui
9eb4462acc
Merge branch 'better-jid-errors' into 'master'
...
jid: Improve error reporting on IDNA validation failure
See merge request poezio/slixmpp!170
2022-02-04 23:07:51 +01:00
mathieui
d5502c9be7
Merge branch 'ca-cert-compat' into 'master'
...
Don't break ca-bundle API just yet
See merge request poezio/slixmpp!178
2022-02-04 23:07:00 +01:00
mathieui
33efbd4d7b
Merge branch 'fix-moderation-bug' into 'master'
...
fix: missing <retract/> on moderate
See merge request poezio/slixmpp!180
2022-02-04 23:06:41 +01:00
mathieui
e344c0c303
fix: missing <retract/> on moderate
2022-02-04 19:25:53 +01:00
Maxime “pep” Buquet
9f38c8944d
Don't break ca-bundle API just yet
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2022-01-03 23:36:25 +01:00
Link Mauve
e56930e0a1
Merge branch 'ca-cert-list' into 'master'
...
Allow Xmlstream.ca_certs to be an iterable
See merge request poezio/slixmpp!177
2022-01-03 11:04:36 +01:00
Maxime “pep” Buquet
d733c54518
Allow Xmlstream.ca_certs to be an iterable
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2022-01-03 10:30:09 +01:00
Maxime Buquet
834ea8ed74
Merge branch 'path-ca-certs' into 'master'
...
Make Xmlstream.ca_certs an Optional[Path] instead of Optional[str]
See merge request poezio/slixmpp!176
2021-12-28 18:35:11 +01:00
Maxime “pep” Buquet
90662d148e
Make Xmlstream.ca_certs an Optional[Path] instead of Optional[str]
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2021-12-28 18:28:36 +01:00
Link Mauve
237405e3a0
Merge branch 'muc-presense-destroy' into 'master'
...
xep_0045: register_stanza_plugin(MUCPresence, MUCDestroy)
See merge request poezio/slixmpp!175
2021-12-22 18:19:50 +01:00
Maxime “pep” Buquet
623d2cc27e
xep_0045: register_stanza_plugin(MUCPresence, MUCDestroy)
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2021-12-19 00:51:42 +01:00
mathieui
6fb4617732
Merge branch 'remove-loop-param' into 'master'
...
fix: remove loop parameter (3.10)
See merge request poezio/slixmpp!174
2021-12-13 23:26:04 +01:00
mathieui
0e5a4726af
ci: fix curl image to an official one
2021-12-13 23:08:55 +01:00
mathieui
8ba054dd53
ci: allow failure in python 3.11 for now
2021-12-13 22:43:52 +01:00
mathieui
e1b135c667
ci: only run integration tests once
2021-12-13 22:37:07 +01:00
mathieui
4ca1de92b3
fix: integration tests
...
prosody got more restrictive?
2021-12-13 22:35:53 +01:00
mathieui
799a6a07a9
fix: remove loop parameter when deprecated (3.10)
2021-12-13 21:31:46 +01:00
mathieui
be6dde17f1
Revert "Replace asyncio.ensure_future() with asyncio.create_task()"
...
This reverts commit bac6a4b2bf .
This is not actually something we want
2021-12-13 21:25:41 +01:00
mathieui
14ae84d666
Merge branch 'ci-add-python-versions' into 'master'
...
ci: add python 3.10 and 3.11 testing
See merge request poezio/slixmpp!173
2021-12-13 20:41:00 +01:00
mathieui
0cc1095ffc
Merge branch 'asyncio-create-task' into 'master'
...
Replace asyncio.ensure_future() with asyncio.create_task()
See merge request poezio/slixmpp!169
2021-12-13 20:40:15 +01:00
mathieui
4cab1f62aa
ci: add python 3.10 and 3.11 testing
2021-12-13 20:33:05 +01:00
Tim-Oliver Husser
4d7786a830
Changed iq.attrib['to'] to iq['to'], same for 'from'.
2021-12-13 13:53:12 +01:00
Tim-Oliver Husser
8fccfc452b
replaced params.xml.findall with params.findall in xml2fault
2021-12-13 13:51:40 +01:00
Emmanuel Gil Peyrot
ed514e6f73
jid: Improve error reporting on IDNA validation failure
...
At least knowing the failing domain should help a lot while debugging.
2021-11-18 15:33:37 +01:00
Emmanuel Gil Peyrot
bac6a4b2bf
Replace asyncio.ensure_future() with asyncio.create_task()
...
The latter function got introduced in Python 3.7, which is conveniently
our MSPV, so let’s use that.
2021-11-18 15:33:03 +01:00
Link Mauve
d4067275ff
Merge branch '0045-invite-JID' into 'master'
...
xep_0045: Ensure invite and decline to/from are JIDs
See merge request poezio/slixmpp!167
2021-07-17 00:33:15 +02:00
Maxime “pep” Buquet
91d32bd066
xep_0045: Ensure invite and decline to/from are JIDs
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2021-07-17 00:21:00 +02:00
mathieui
22fa8bc4d9
Merge branch 'more-typing' into 'master'
...
Add more typing
See merge request poezio/slixmpp!166
2021-07-15 10:01:03 +02:00
mathieui
5c54806578
stanza: fix circular imports
...
ew
2021-07-05 23:05:57 +02:00
mathieui
42ca51e2b1
ci: add a mypy stage
2021-07-05 22:44:41 +02:00
mathieui
de6c19c9cd
add a mypy.ini file
2021-07-05 22:42:28 +02:00
mathieui
ca1cc73c79
xmlstream: refine type check
2021-07-05 22:42:18 +02:00
mathieui
9489586cb4
plugins: use classvar properly
2021-07-05 22:42:18 +02:00
mathieui
524c352da3
clientxmpp: cleanup some types
2021-07-05 22:42:18 +02:00
mathieui
35eafadb44
features: fix typing
...
for an annoying mypy bug
2021-07-05 22:42:18 +02:00
mathieui
af958fd1fe
stanza: fix a bunch of type errors
2021-07-05 22:42:18 +02:00
mathieui
0971bab30a
matcher: fix idsender typing
2021-07-05 22:28:50 +02:00
mathieui
ed3bb878a7
handler: fix more types
2021-07-05 22:28:38 +02:00
mathieui
f2d7e86fc7
typing: add a bunch of type ignores
...
because this is too smart for mypy and I do not want to rewrite those
things right now.
2021-07-05 22:25:38 +02:00
mathieui
fe1a325aa7
api: fix typing
2021-07-05 20:09:59 +02:00
mathieui
ea7f7d8119
fix: remove asyncio hack in slixtest
2021-07-04 16:01:48 +02:00
mathieui
3516016f32
typing: reorder jid.bare setter
2021-07-04 15:59:46 +02:00
mathieui
a57aae792d
typing: fix basexmpp type overloads
...
mypy got confused
2021-07-04 15:59:27 +02:00
mathieui
d6924fa7ad
fix: please python 3.7
2021-07-03 12:02:36 +02:00
mathieui
20e4c2c257
types: add __all__
2021-07-03 11:17:15 +02:00
mathieui
df963542c1
basexmpp/clientxmpp: refine typing
2021-07-03 11:17:15 +02:00
mathieui
7fc3c48cad
pluginsdict: add xep 0048
2021-07-03 11:17:15 +02:00
mathieui
7d4172808f
stanza: add typing
2021-07-03 11:17:15 +02:00
mathieui
95b034797f
jid: reorder properties for mypy
...
don’t ask
2021-07-03 11:17:15 +02:00
mathieui
f1b429199f
cert: add some typing
2021-07-03 11:17:15 +02:00
mathieui
db48c8f4da
xmlstream: add more types
2021-07-03 11:17:15 +02:00
mathieui
c07476e7de
setup: indicate that slixmpp contains type hints
2021-07-03 11:17:15 +02:00
mathieui
62e66e7d03
stanzabase: types
2021-07-03 11:17:15 +02:00
mathieui
79f71ec0c1
starttls: do not send back the feature we receive
...
I don’t see what a server would do with <required/>
2021-07-03 11:17:15 +02:00
mathieui
451bee0892
starttls: make the starttls element inherit from stanzabase
2021-07-03 11:17:15 +02:00
mathieui
00d38c1b29
typing: add to tostring
2021-07-03 11:17:15 +02:00
mathieui
fed55d3dda
typing: matchers and senders
...
Leftover error that I cannot fix:
* https://github.com/python/mypy/issues/708
Leftover error that I am unsure of what to do:
* xml handlers are not properly typed
(it seems like nothing in slix is using it, considering a removal
instead of adding an Union everywhere)
2021-07-03 11:17:15 +02:00
mathieui
4931e7e604
refactor: type the resolver
...
almost perfect, except for python < 3.9 making it so we can’t have nice
things.
2021-06-28 21:01:21 +02:00
mathieui
9f01d368c0
refactor: remove the now obsolete future_wrapper and asyncio-related module
2021-06-28 21:01:18 +02:00
mathieui
ef06429941
slixmpp.util: type things
...
Fix a bug in the SASL implementation as well. (some special chars would
make things crash instead of being escaped)
2021-06-28 21:00:30 +02:00
Link Mauve
b1411d8ed7
Merge branch 'request-voice' into 'master'
...
XEP-0045: Add a helper method to request voice
See merge request poezio/slixmpp!165
2021-05-21 19:05:26 +02:00
Emmanuel Gil Peyrot
889cfaa95b
XEP-0045: Add a helper method to request voice
...
This can be used in a moderated room when we are only a visitor.
2021-05-21 19:00:59 +02:00
mathieui
b7f0160c0d
Merge branch 'disconnected-stanzas-no-resend' into 'master'
...
xmlstream: do not re-send queued stanzas on each connect
See merge request poezio/slixmpp!163
2021-05-02 19:02:38 +02:00
mathieui
528553be57
xmlstream: do not re-send queued stanzas on each connect
...
each sent stanza should be purged, obviously…
2021-05-02 18:55:14 +02:00
mathieui
6f4ac7e7ce
Merge branch 'fix-slow-tasks' into 'master'
...
xmlstream: Fix slow tasks
See merge request poezio/slixmpp!162
2021-04-30 19:43:05 +02:00
mathieui
aaab58d229
itests: add a simple slow filter test
2021-04-30 19:33:23 +02:00
mathieui
0b5f6cb0a8
xmlstream: fix slow tasks scheduling
...
- wrong attribute used
- some mistakes in the slow tasks function
2021-04-30 19:27:30 +02:00
Link Mauve
027545eb71
Merge branch 'fix-docs' into 'master'
...
docs: Use the correct number for user_nick
See merge request poezio/slixmpp!161
2021-04-24 20:39:29 +02:00
Emmanuel Gil Peyrot
290d84cd0f
docs: Use the correct number for user_nick
...
Thanks Felix for noticing!
2021-04-24 20:33:04 +02:00
Link Mauve
f058e62680
Merge branch 'fix-0353' into 'master'
...
XEP-0353: Use the correct callback for <proceed/>
See merge request poezio/slixmpp!160
2021-04-24 20:25:34 +02:00
Emmanuel Gil Peyrot
104917163d
XEP-0353: Use the correct callback for <proceed/>
...
Thanks elmar for noticing!
2021-04-24 20:20:02 +02:00
mathieui
d184442337
Merge branch 'fix-waiting-queue-xmlstream' into 'master'
...
xmlstream: fix use of the waiting queue
See merge request poezio/slixmpp!159
2021-04-22 21:08:08 +02:00
mathieui
a4789acbfb
xmlstream: fix use of the waiting queue
2021-04-22 21:07:30 +02:00
mathieui
3630c3d1cc
Merge branch 'caps-broadcast-presence' into 'master'
...
Caps: do not broadcast presence on PEP plugin load/unload
See merge request poezio/slixmpp!157
2021-04-20 19:08:46 +02:00
mathieui
41fc6a2e6b
itests: explicitly send caps in avatar example
2021-04-20 18:57:50 +02:00
mathieui
7f0febb929
Merge branch 'use-runpy-for-version-data' into 'master'
...
fix: use runpy to get versiion-data
See merge request poezio/slixmpp!158
2021-04-20 09:27:10 +02:00
mathieui
44392fa2d9
fix: use runpy to get versiion-data
...
fix compatibility with debian stable (thanks jonas’)
2021-04-20 09:18:57 +02:00
mathieui
7bb94afdc8
XEP-0163: do not broadcast caps when adding/removing interest
2021-04-19 23:19:40 +02:00
mathieui
8828a5b99d
XEP-0115: add a broadcast parameter to update_caps
...
and do not send a presence after updating if it is false
2021-04-19 23:17:10 +02:00
mathieui
0d52344a31
Merge branch 'fix-component-handshake' into 'master'
...
Fix component handshake
Closes #3464
See merge request poezio/slixmpp!156
2021-04-19 19:53:33 +02:00
mathieui
768089d457
tests: fix bogus test case
...
stanza.match worked accidentally, but the two elements used in that test
actually conflict with each other (not overriding the plugin_attrib,
which makes it then default to 'plugin', leading to shenanigans).
2021-04-19 19:42:52 +02:00
mathieui
eee185ff90
stanza: rework the .append() and __eq__ methods
...
This was very much broken on plugin iterables and other reasons.
2021-04-18 23:01:36 +02:00
mathieui
99c6fc923a
itests: do not compare strings, compare xml
2021-04-18 23:01:01 +02:00
mathieui
d4e1b68534
Allow handshake in stream.send() when not connected yet
...
fix #3464
2021-04-18 21:16:03 +02:00
mathieui
3bb01de120
stanza: add a Handshake class and use it in componentxmpp
2021-04-18 21:15:22 +02:00
mathieui
7057773d18
Merge branch 'tentative-fix-for-reconnect-race' into 'master'
...
xmlstream: do not allow stanzas outside a session
See merge request poezio/slixmpp!154
2021-04-12 19:49:10 +02:00
mathieui
894131d772
Merge branch 'inbound-id-message-presence' into 'master'
...
Fix #3441 : Do not assign ID to inbound stanzas
Closes #3441
See merge request poezio/slixmpp!155
2021-04-09 20:55:41 +02:00
mathieui
fcf666e3cb
Fix #3441 : Do not assign ID to inbound stanzas
2021-04-09 20:40:30 +02:00
mathieui
3e5943f458
xmlstream: do not allow stanzas outside a session
...
except for the bind, obviously
2021-04-08 18:47:51 +02:00
mathieui
7ddcc3428f
Merge branch 'xep-0300-fixup' into 'master'
...
XEP-0300: small fixes
See merge request poezio/slixmpp!151
2021-03-11 20:54:31 +01:00
mathieui
d77eb3a7e8
Merge branch 'fix-0030-get-info-ifrom' into 'master'
...
XEP-0030: Fix usage of ifrom in get_info
See merge request poezio/slixmpp!152
2021-03-10 22:09:54 +01:00
mathieui
7f90fb594a
XEP-0030: Fix usage of ifrom in get_info
2021-03-10 22:07:00 +01:00
mathieui
1cf6393b61
XEP-0300: small fixes
...
- fix a typo in the default option (crash when hashing a file without
providing a function)
- Fix the plugin_end method (classical del_feature footgun)
2021-03-10 21:26:08 +01:00
mathieui
7c86c43fc7
Merge branch 'mam-update' into 'master'
...
MAM Update
See merge request poezio/slixmpp!149
2021-03-09 21:20:14 +01:00
mathieui
8a1f9bec56
Merge branch 'xep-0115-fix-error' into 'master'
...
XEP-0115: remove wrong coroutine=True argument
See merge request poezio/slixmpp!150
2021-03-09 20:05:09 +01:00
mathieui
ad2673fd2c
XEP-0115: remove wrong coroutine=True argument
2021-03-09 20:02:16 +01:00
mathieui
0115feaa31
tests: Add a MAM metadata stanza test
2021-03-09 19:52:53 +01:00
mathieui
3613cd5f14
tests: Add a MAM stream test
2021-03-09 19:52:53 +01:00
mathieui
644ebfe89f
XEP-0313: Only remove origin-id from the mask if it exists
2021-03-09 19:52:53 +01:00
mathieui
e329eadbed
XEP-0313: Fix off-by-one-page RSM fetching
...
Add a "results" interface to mam_fin, and fix some things in RSM
Items just received were not taken into account because:
- RSM code is checking iq['mam_fin']['results'], results were at
iq['mam']['results']
- RSM handler was run after checking the number
2021-03-09 19:52:53 +01:00
mathieui
4cdcc4d155
itests: test mam.iterate() as well for fetching the archive
2021-03-09 19:52:53 +01:00
mathieui
97a63b9f25
XEP-0313: Update the API
...
- add an iterate() method that makes this plugin more practical
- add a get_fields method to retrieve the available search fields
- add a get_archive_metadata method.
This is a big chunk because git refused to split it further.
2021-03-09 19:52:53 +01:00
mathieui
dbbc47e02d
docs, XEP-0313: Order document by source
2021-03-09 19:52:53 +01:00
mathieui
7d2b245bb0
XEP-0441: Split MAM preferences into a separate plugin
2021-03-09 19:52:53 +01:00
mathieui
e5f4794a36
XEP-0313: Update stanza for completeness, and more docs
2021-03-09 19:52:53 +01:00
mathieui
d7d4baefa3
tests: Add XEP-0313 stanza tests
2021-03-09 19:52:53 +01:00
mathieui
1289cf575c
Merge branch 'rsm-fixes' into 'master'
...
XEP-0059 (RSM) - Some fixes
See merge request poezio/slixmpp!145
2021-03-09 19:25:26 +01:00
mathieui
a568363a6c
Merge branch 'async-adhoc' into 'master'
...
XEP-0050 Make handle_command_xxx async
See merge request poezio/slixmpp!144
2021-03-09 19:24:43 +01:00
Nicoco K
eac5ad50a8
XEP-0050 Make handle_command_xxx async
2021-03-09 19:24:43 +01:00
mathieui
e97f5ccb9c
Merge branch 'fix-0004-field-type' into 'master'
...
Fix 0004 field type
See merge request poezio/slixmpp!148
2021-03-08 21:10:20 +01:00
mathieui
432a332636
tests: Fix XEP-0060 tests for the new 0004 change regarding type attribute
2021-03-08 21:06:43 +01:00
mathieui
30b1d27fc1
XEP-0004: stanza, only delete field type if it is not 'hidden'
...
Not strictly required, but most XEPs use it like that for forms of
type='submit', and that makes it easier to write stanza tests.
2021-03-08 21:04:21 +01:00
mathieui
cb83ebe32c
Merge branch 'form-multi-attrib' into 'master'
...
XEP-0004: add "forms" as a multi-attrib plugin for Form
See merge request poezio/slixmpp!147
2021-03-08 18:53:56 +01:00
mathieui
cd0845515a
Merge branch 'typing-jid' into 'master'
...
JID: add some forgotten type hints
See merge request poezio/slixmpp!146
2021-03-08 18:53:40 +01:00
mathieui
ade1b010ed
XEP-0004: add "forms" as a multi-attrib plugin for Form
2021-03-07 21:14:38 +01:00
mathieui
5ff46d6245
JID: add some forgotten type hints
2021-03-07 21:12:22 +01:00
mathieui
5a3ab2c5c1
tests: enable and fix RSM test for XEP-0030
2021-03-07 20:43:44 +01:00
mathieui
27cf97458b
XEP-0059: docs and typing
...
Also:
- fix a typo in the plugin description (wrong number)
- add iq_options to make retrieval more flexible
2021-03-07 19:47:00 +01:00
mathieui
ae31f78b63
docs: add resultiterator docs for XEP-0059
2021-03-07 19:45:01 +01:00
mathieui
c1a598c34b
Merge branch 'xep-0030-typing-and-co' into 'master'
...
XEP-0030: add typing and more docs
See merge request poezio/slixmpp!143
2021-03-04 22:14:59 +01:00
mathieui
2314ee422a
Merge branch 'gateway' into 'master'
...
Gateway interaction (XEP0100)
See merge request poezio/slixmpp!135
2021-03-02 18:54:22 +01:00
Nicoco K
9b5f3d9df0
Add XEP-0100 (Gateway Interaction) plugin
...
Remove usused prompt_future attribute
Add plugin_end
Update with mathieui's comments
Add option to transfer messages from unregistered users
XEP 0100 plugin
2021-03-02 18:54:22 +01:00
mathieui
49416dacbc
XEP-0030 static: Fix PEP8, types
2021-03-01 21:11:33 +01:00
mathieui
e3027dabb2
XEP-0030 stanza: FIX PEP8, types
2021-03-01 20:55:27 +01:00
mathieui
10611525a0
XEP-0030 plugin: Fix PEP8, types
2021-03-01 20:54:53 +01:00
mathieui
2ff72d88fd
docs: improve XEP-0030 docs
2021-03-01 20:54:26 +01:00
mathieui
9561a2a305
types: add some often-used types
2021-03-01 20:54:10 +01:00
mathieui
2dac77e680
Merge branch 'docs-dedfault' into 'master'
...
docs: fix a typo (dedfault)
See merge request poezio/slixmpp!142
2021-02-27 21:07:11 +01:00
mathieui
0726b79345
docs: fix a typo (dedfault)
2021-02-27 21:02:55 +01:00
mathieui
9f1ded7f5f
Merge branch 'more-tests' into 'master'
...
Add some more tests for MIX, and fix a small bug
See merge request poezio/slixmpp!141
2021-02-27 21:02:03 +01:00
mathieui
bea2669907
XEP-0403: Add stanza tests
2021-02-27 13:21:13 +01:00
mathieui
a288094b64
XEP-0405: add stream tests
2021-02-27 13:21:13 +01:00
mathieui
f12b04bd0b
XEP-0405: Fix a bug in nodes returned by join_channel
...
Yay tests!
2021-02-27 13:21:13 +01:00
mathieui
059cb290d8
Merge branch 'async-interal-api-break-everything' into 'master'
...
Make the internal "api" async
See merge request poezio/slixmpp!128
2021-02-27 13:16:18 +01:00
mathieui
3cdec464a5
docs: document the "internal API" with reference & howto
2021-02-26 00:09:56 +01:00
mathieui
9927e69435
docs: add references to API docs
2021-02-26 00:08:56 +01:00
mathieui
8e388df8e0
XEP-0231: do not crash if max-age is None
...
it is only RECOMMENDED
2021-02-26 00:08:56 +01:00
mathieui
8eee559d39
api: update docstrings/typing
2021-02-26 00:08:56 +01:00
mathieui
2fed9f9ad2
XEP-0319: API changes
...
- ``idle`` and ``active`` are now coroutines.
2021-02-26 00:08:56 +01:00
mathieui
9947d3db85
XEP-0231: API changes
...
- ``get_bob`` and ``set_bob`` are now coroutines.
- ``del_bob`` returns a Future.
2021-02-26 00:08:56 +01:00
mathieui
ab87b25030
XEP-0153: API changes
2021-02-26 00:08:56 +01:00
mathieui
e24e2f58d4
XEP-0128: API changes
...
- ``set_extended_info``, ``add_extended_info`` and ``del_extended_info`` return Futures.
2021-02-26 00:08:56 +01:00
mathieui
4960cffcb4
XEP-0115: API changes
...
- ``get_verstring``, ``get_caps`` are now coroutines.
- ``assign_verstring``, ``cache_caps`` now return a Future.
side-effect: fix supports() and has_identity() broken since forever
2021-02-26 00:08:56 +01:00
mathieui
f0aec1614f
XEP-0095: API changes
...
- ``accept`` and ``decline`` are now coroutines.
2021-02-26 00:08:56 +01:00
mathieui
504067d5a8
XEP-0077: API changes
2021-02-26 00:08:56 +01:00
mathieui
0b3233a6e8
XEP-0065: API changes
2021-02-26 00:08:56 +01:00
mathieui
f7ecce42ac
XEP-0054: API changes
...
- ``get_vcard``, ``publish_vcard`` are now coroutines.
2021-02-26 00:08:56 +01:00
mathieui
d17967f58e
XEP-0047: API changes
...
and fix unit tests broken for years.
2021-02-26 00:08:56 +01:00
mathieui
13de36baa1
XEP-0030: API changes
...
- ``supports``, ``has_identity``, ``get_info``, ``get_items`` are now coroutines
- ``set_info````set_items``, ``del_items``, ``add_item``, ``add_identity``,
``del_identity``, ``set_identities``, ``del_identities``, ``add_feature``,
``del_feature``, ``set_feature``, ``set_features``, ``del_features``
now return a Future
also fix has_identity and supports which have been broken in forever
2021-02-26 00:08:56 +01:00
mathieui
7772e26a8c
XEP-0027: API changes
...
- ``get_keyids`` and ``get_keyid`` are now coroutines.
- ``set_keyid`` and ``del_keyid`` now return a Future.
2021-02-26 00:08:56 +01:00
mathieui
0b6326e1cc
XEP-0012: API changes.
2021-02-26 00:08:56 +01:00
mathieui
d51c4e307d
api: make run() always return a Future
...
plugins must be modified to make use of this, but this keeps synchronous
code synchrouns while allowing coroutine in api, which makes sense.
2021-02-26 00:08:56 +01:00
mathieui
8da5310ea6
xmlstream: add a wrap() method for ensure_future
2021-02-26 00:08:56 +01:00
mathieui
5f9ab45a5e
Merge branch 'stream-features-sync-event' into 'master'
...
Allow "sync" events to be processed in-order
See merge request poezio/slixmpp!129
2021-02-24 20:59:12 +01:00
mathieui
6d241be789
XEP-0077: Fix "register" event on stream features.
2021-02-24 20:50:05 +01:00
mathieui
babd98dac7
xmlstream: add event_async() for events that need in-order processing
...
Essentially stream feature handlers which can then make sure the feature
has been process correctly (e.g. 0077).
This is the same approach as slixmpp!4.
2021-02-24 20:50:05 +01:00
mathieui
b8b57960f1
Merge branch 'httpupload-add-oob' into 'master'
...
examples: add oob to httpupload example
See merge request poezio/slixmpp!140
2021-02-24 20:47:45 +01:00
mathieui
5764ef7ff7
examples: add oob to httpupload example
...
many people ask how to do this, might as well do this by default
2021-02-24 20:43:21 +01:00
mathieui
7381460556
Merge branch 'collections-abc-warning' into 'master'
...
Collections abc warning
See merge request poezio/slixmpp!139
2021-02-22 18:18:33 +01:00
Nicolas Cedilnik
8b7648502b
Fix deprecation warning
2021-02-22 13:09:39 +01:00
mathieui
17a663b0fd
Merge branch 'test-run-coro-return-value' into 'master'
...
tests: return the coroutine result in run_coro
See merge request poezio/slixmpp!138
2021-02-20 12:58:52 +01:00
mathieui
9270d1e538
tests: return the coroutine result in run_coro
2021-02-20 12:56:14 +01:00
mathieui
35c68738a7
Merge branch 'remove-loop-wait-for' into 'master'
...
xmlstream: remove loop parameter to wait_for
See merge request poezio/slixmpp!137
2021-02-20 12:42:34 +01:00
mathieui
751987e2b0
xmlstream: remove loop parameter to wait_for
...
Deprecated in 3.8, removed in 3.10
2021-02-20 12:39:51 +01:00
mathieui
35a9526a4c
Merge branch 'enable-debug-on-run-tests' into 'master'
...
run_tests: add a command-line option to enable debug logs
See merge request poezio/slixmpp!136
2021-02-20 11:58:30 +01:00
mathieui
7e3e056e6b
slixtest: add more shortcuts for asyncio workflow
2021-02-20 11:55:46 +01:00
mathieui
94700de7a3
run_tests: add a command-line option to enable debug logs
2021-02-20 11:53:30 +01:00
mathieui
2f0660c6ff
Merge branch 'fix-slixtest-default-ns-component' into 'master'
...
slixtest: use the default stream ns instead of jabber:client
See merge request poezio/slixmpp!133
2021-02-20 11:27:33 +01:00
mathieui
ba7e5e417f
slixtest: use the default stream ns instead of jabber:client
2021-02-20 11:24:43 +01:00
mathieui
2ba89727a6
Merge branch 'fix-test-order-race' into 'master'
...
tests: fix prerequisites for stanza tests
See merge request poezio/slixmpp!134
2021-02-19 19:06:41 +01:00
mathieui
a397cc3a7d
tests: fix prerequisites for stanza tests
2021-02-19 19:03:46 +01:00
mathieui
626bf5ff8a
Merge branch 'component-registration' into 'master'
...
Add registration to components
See merge request poezio/slixmpp!130
2021-02-18 20:05:25 +01:00
Nicoco K
cef7b5cf05
Add registration to components
2021-02-18 20:05:25 +01:00
mathieui
8d92027d01
Merge branch 'privilege' into 'master'
...
Privileged entities (XEP-0356)
See merge request poezio/slixmpp!131
2021-02-18 20:03:22 +01:00
Nicoco K
dcab3de1b4
Privileged entities (XEP-0356)
2021-02-18 20:03:22 +01:00
mathieui
3453ebf0c5
Merge branch 'fix-origin-id-no-stream' into 'master'
...
stanzabase: Fix a bug when setting id for streamless messages
See merge request poezio/slixmpp!132
2021-02-17 19:42:58 +01:00
mathieui
699a2620b7
stanzabase: Fix a bug when setting id for streamless messages
2021-02-17 19:29:52 +01:00
Link Mauve
5d7918b122
Merge branch 'vcard-fix-handler' into 'master'
...
XEP-0054: fix component handling of vcard requests
See merge request poezio/slixmpp!127
2021-02-13 22:02:31 +01:00
mathieui
3eeef6b4b6
XEP-0054: fix component handling of vcard requests
...
Fetching the local vcard for the JID from which the stanza originates
does not make sense.
2021-02-13 21:58:13 +01:00
Link Mauve
f50dfd6644
Merge branch 'remove-more-extra-args' into 'master'
...
More cleanup of extra args, types, docs, and API
See merge request poezio/slixmpp!126
2021-02-13 20:25:57 +01:00
mathieui
bbcc977d1d
tests: update 0047 tests to reflect new API
2021-02-13 20:23:21 +01:00
mathieui
3668e79fbc
itets: Add tests for 0222 and 0223
2021-02-13 20:23:21 +01:00
mathieui
febfb6d6ca
XEP-0280: More typing and docs, new kwargs
2021-02-13 20:23:21 +01:00
mathieui
3b43d8eb7f
XEP-0223: Add more types and docs, and switch to new kwargs
2021-02-13 20:23:21 +01:00
mathieui
6520376977
XEP-0222: Add more types and docs, and use new-style kwargs
2021-02-13 20:23:21 +01:00
mathieui
8b5776faec
itests: add an httpupload test
2021-02-13 20:23:21 +01:00
mathieui
ea2d851a93
XEP-0363: Types, docs, and new-style kwargs
2021-02-13 20:23:21 +01:00
mathieui
a7d690813c
itets: Add a BOB test
2021-02-13 20:23:20 +01:00
mathieui
02262679e9
XEP-0231: Add typing, docs, and new-style kwargs
...
Also add content deletion scheduling if specified.
2021-02-13 20:23:20 +01:00
mathieui
654178b960
itests: add IBB test
2021-02-13 20:23:20 +01:00
mathieui
02e0afbf0f
XEP-0047: Better typing, docs, coroutine.
...
- Add a gather() shortcut to buffer all data received in a stream
- Fix a bug in sendall that happens if the data is above the block
size.
2021-02-13 20:23:20 +01:00
Link Mauve
ace82c9bc4
Merge branch 'defusedxml-usage' into 'master'
...
global: use defusedxml if it is available
See merge request poezio/slixmpp!125
2021-02-11 20:27:32 +01:00
mathieui
53dc9847e2
global: use defusedxml if it is available
2021-02-11 20:23:11 +01:00
Link Mauve
bfbc433c8d
Merge branch 'remove-old-python-workaround' into 'master'
...
slixmpp: remove asyncio hack for older python versions
See merge request poezio/slixmpp!124
2021-02-11 20:21:37 +01:00
mathieui
ba7c7f4bb9
slixmpp: remove asyncio hack for older python versions
2021-02-11 20:18:00 +01:00
mathieui
7cde0db4aa
docs: update requirements
2021-02-10 12:47:11 +01:00
mathieui
1c4e06d510
Merge branch 'muc-improvements-reloaded' into 'master'
...
Muc improvements reloaded
See merge request poezio/slixmpp!123
2021-02-08 23:11:08 +01:00
mathieui
80ee551acd
docs: fix links to stanza doc
2021-02-08 23:08:31 +01:00
mathieui
f0601cdb84
docs: fill and update the event index
2021-02-08 23:08:31 +01:00
mathieui
0978f66736
docs: fix copyright footer
2021-02-08 23:08:31 +01:00
mathieui
679432591e
docs: do not order xep 0045 methods alphabetically
2021-02-08 23:08:31 +01:00
mathieui
bc04da256a
XEP-0045: Types, visibility, and documentation
...
- Make all handlers private (_-prefixed)
- Reorder methods in a more thematic order
- Add docstrings to public methods
- Add types where they were missing
- Create new Literal types for closed enums
- Make join_muc a wrapper around join_muc_wait and return a Future
- Deprecate the current join_muc API
- Fix some mypy issues
2021-02-08 23:08:31 +01:00
mathieui
b9e479f213
Merge branch 'doc-stanza' into 'master'
...
Fill the stanza howto
See merge request poezio/slixmpp!122
2021-02-06 17:59:53 +01:00
mathieui
648ca16b4c
docs: fill the stanza howto
2021-02-06 12:29:31 +01:00
mathieui
622cfd4ed7
basexmpp: add more typing, fix some docs
2021-02-06 12:29:14 +01:00
mathieui
d850b9a9f7
types: move pluginsdict to a dedicated file
...
And add some Literal types.
2021-02-06 12:28:32 +01:00
mathieui
fb74e46c35
Merge branch 'rewrite-copyright-notices' into 'master'
...
Rewrite copyright notices to use comments and not docstrings
See merge request poezio/slixmpp!121
2021-02-05 21:18:12 +01:00
mathieui
603cbccddd
examples: rewrite copyright notices
2021-02-05 20:51:15 +01:00
mathieui
bbd351e9c1
global: rewrite copyright notice to use comments
2021-02-05 20:46:18 +01:00
mathieui
cff4588499
Merge branch 'updat-typing-and-generic-args' into 'master'
...
Update typing and generic args for plugins (step 1)
See merge request poezio/slixmpp!120
2021-02-05 20:14:41 +01:00
mathieui
89601289fe
itests: add 0012, 0054, 0084, 0092, 0153, 0191 tests
2021-02-05 20:08:16 +01:00
mathieui
6c3f26161e
itests: allow pconfig registration with plugins
2021-02-05 20:08:16 +01:00
mathieui
d6ab3124ce
XEP-0084: add integer wrappers for int stanza attributes
2021-02-05 20:08:16 +01:00
mathieui
cb8d2edc8d
XEP-0191: Add type hints and switch to default args
2021-02-05 20:08:16 +01:00
mathieui
69e04d7d2e
XEP-0153: Add typing and switch to default args
...
(and refactor a bit)
2021-02-05 20:08:16 +01:00
mathieui
ace5aeb80e
XEP-0153: Fix a bug that would add muc elements to inbound presence
2021-02-05 20:08:16 +01:00
mathieui
712ac671e1
XEP-0152: Add type hints and switch to default args
2021-02-05 20:08:16 +01:00
mathieui
99c2e5cafd
XEP-0092: Add type hints and switch to default args
2021-02-05 20:08:16 +01:00
mathieui
8e612bf229
XEP-0084: Add type hints and switch to default args
2021-02-05 20:08:16 +01:00
mathieui
7860edefe9
XEP-0054: Add type hints and switch to default args
2021-02-05 20:08:16 +01:00
mathieui
fbb8993244
XEP-0049: Add type hints and switch to default args
2021-02-04 20:35:22 +01:00
mathieui
77c8caf205
XEP-0012: Add type hints and switch to default args
2021-02-04 20:27:07 +01:00
Link Mauve
c82e1a4039
Merge branch 'stanzabase-make-get-plugin-public-api' into 'master'
...
stanzabase: make _get_plugin part of the public API
See merge request poezio/slixmpp!119
2021-02-04 19:28:29 +01:00
mathieui
69b265b975
stanzabase: make _get_plugin part of the public API
...
it is the only way I know of checking if an element is present in a
stanza without creating it or checking the XML manually.
2021-02-04 19:25:55 +01:00
mathieui
917cb555d5
Merge branch 'debug-logs-in-itests' into 'master'
...
itests: add a command-line parameter to enable debug logs
See merge request poezio/slixmpp!118
2021-02-04 19:25:17 +01:00
mathieui
d3fb993b29
Merge branch 'remove-unused-obsolete-things' into 'master'
...
Remove unused and obsolete things, and make other things private
See merge request poezio/slixmpp!117
2021-02-04 19:24:29 +01:00
mathieui
ccbba89cbd
xmlstream: make dns_answers private
2021-02-04 19:22:13 +01:00
mathieui
d3063a0368
xmlstream: make connect_loop_wait private
2021-02-04 19:22:13 +01:00
mathieui
40196aefeb
itests: add a command-line parameter to enable debug logs
2021-02-04 19:14:23 +01:00
mathieui
782dbdea65
docs: remove python 2 bug workaround explanations
2021-02-04 18:32:10 +01:00
mathieui
650e1a2ed5
docs/xmlstream: remove HTTP proxy references
...
It has been removed years ago.
2021-02-04 18:31:43 +01:00
Link Mauve
c486c0e821
Merge branch 'documentation-update' into 'master'
...
Documentation update
See merge request poezio/slixmpp!116
2021-02-03 23:23:38 +01:00
mathieui
f8c39bae60
docs: update the iq tutorial
2021-02-03 23:21:11 +01:00
mathieui
d9975aa4c0
docs: move things around for a cleaner toctree
2021-02-03 23:04:02 +01:00
mathieui
17f08929f9
docs: add slixmpp credits, move fork note to the bottom
2021-02-03 22:34:33 +01:00
Link Mauve
d8dbfaa37e
Merge branch 'pep-xeps-fix-returns' into 'master'
...
Fix return values and improve typing in "user *" PEP XEPs
See merge request poezio/slixmpp!115
2021-02-03 22:29:00 +01:00
mathieui
cb3d9dd41c
XEP-0196: Fix return values and typing
2021-02-03 22:24:40 +01:00
mathieui
e6e57f6e8c
XEP-0172: Fix return values and typing
2021-02-03 22:24:24 +01:00
mathieui
64299d6a54
XEP-0118: Fix return values and typing
2021-02-03 22:24:03 +01:00
mathieui
f6761e513d
XEP-0108: Fix return values and typing
2021-02-03 22:23:44 +01:00
mathieui
f2878e1764
XEP-0107: Fix return values and typing
2021-02-03 22:23:16 +01:00
Link Mauve
2585764b46
Merge branch 'type-plugins' into 'master'
...
basexmpp: type self.plugins in a more useful manner
See merge request poezio/slixmpp!114
2021-02-03 21:56:10 +01:00
mathieui
a16792e990
basexmpp: type self.plugins in a more useful manner
2021-02-03 21:53:43 +01:00
mathieui
6448d09c30
Merge branch 'docs-change-theme' into 'master'
...
docs: change theme to furo
See merge request poezio/slixmpp!113
2021-01-31 20:41:46 +01:00
mathieui
a85e5225f9
docs: change theme to furo
...
it looks better, and has a dark mode
2021-01-31 20:37:33 +01:00
mathieui
3c19f69c25
Merge branch 'join-wait-timeout-none' into 'master'
...
XEP-0045: make the join_muc_wait timeout parameter optional
See merge request poezio/slixmpp!112
2021-01-31 19:41:40 +01:00
mathieui
846c42e386
XEP-0045: make the join_muc_wait timeout parameter optional
2021-01-31 19:39:12 +01:00
mathieui
1f97462391
Merge branch 'muc-sync-join' into 'master'
...
XEP-0045: Add new directed events and a join_muc_wait function
See merge request poezio/slixmpp!111
2021-01-31 18:17:54 +01:00
mathieui
c7d87a27e1
XEP-0045: Add a join_muc_wait function
...
Which is async, raises on timeout or error, and returns when
joined.
2021-01-31 17:15:47 +01:00
mathieui
a8113dca49
XEP-0045: Add a specific handler for MUC presence errors
2021-01-31 17:15:47 +01:00
mathieui
eda692d1c6
XEP-0045: add a directed event for self-presence
2021-01-31 17:02:51 +01:00
mathieui
7932a03378
xmlstream: add a simple contextmanager for temporary events
2021-01-31 17:01:41 +01:00
mathieui
e9b07e32bb
exceptions: add a PresenceError exception
2021-01-31 17:00:42 +01:00
mathieui
8689212602
Merge branch 'mix-additions' into 'master'
...
MIX additions: handle MIX-PAM with roster and new events
See merge request poezio/slixmpp!108
2021-01-31 12:48:44 +01:00
mathieui
68649d0089
Merge branch 'update-doc-xep-titles' into 'master'
...
doc: update XEP titles
See merge request poezio/slixmpp!110
2021-01-30 19:04:11 +01:00
mathieui
473575d276
doc: update XEP titles
2021-01-30 19:01:38 +01:00
mathieui
ab9b7115de
Merge branch 'fix-xep-descriptions' into 'master'
...
xeps: fix description for the newer plugins
See merge request poezio/slixmpp!109
2021-01-30 18:55:20 +01:00
mathieui
58f4ccf5c7
xeps: fix description for the newer plugins
2021-01-30 18:52:54 +01:00
mathieui
f41fd7cce4
examples: add an example MIX bot
...
(does the same as the current MUC bot)
2021-01-30 18:39:28 +01:00
mathieui
04a3f609e2
XEP-0405: Manage MIX Roster items
2021-01-30 18:17:12 +01:00
mathieui
119f59ecbe
XEP-0369: Add events for channel/participants
2021-01-30 17:42:20 +01:00
mathieui
ee671dfb29
Merge branch 'next-version-1.7.0' into 'master'
...
Increment version to 1.7.0
See merge request poezio/slixmpp!107
2021-01-29 21:57:26 +01:00
mathieui
d954283fb6
version: update to 1.7.0
2021-01-29 21:50:43 +01:00
mathieui
ed2c03fade
DOAP: add an 1.7.0 entry
...
also remove some duplicate description tags
2021-01-29 21:50:22 +01:00
Link Mauve
a381267d21
Merge branch 'connect-basic-itests' into 'master'
...
tests: add basic reconnect/connect integration tests
See merge request poezio/slixmpp!106
2021-01-29 16:51:05 +01:00
mathieui
1e1576473b
tests: add basic reconnect/connect integration tests
2021-01-29 16:48:30 +01:00
Link Mauve
dbcd0c6050
Merge branch 'reconnect-logic-doomed' into 'master'
...
fix reconnect logic
See merge request poezio/slixmpp!104
2021-01-29 16:11:29 +01:00
mathieui
f93af07882
XEP-0198: do not send acks when disconnected
2021-01-29 16:07:44 +01:00
mathieui
3f739e513b
xmlstream: keep value of "end_session_on_disconnect"
...
That value should be set statically. Worst case is we fail to resume the
session.
2021-01-29 15:33:44 +01:00
mathieui
fc7d7b4eb7
XEP-0198: Enable SM even if we failed resuming the session
...
And trigger session_end only after we fail the resuming.
2021-01-29 15:33:44 +01:00
mathieui
3642e2c7f4
xmlstream: ensure slow futures are scheduled on this loop
2021-01-29 15:33:44 +01:00
mathieui
f15311bda8
xmlstream: Make the reconnect handler a coroutine
2021-01-29 15:33:44 +01:00
mathieui
b2dfb4c1f3
xmlstream: do not touch connection state on abort()
...
leave it to the connection_lost handler
2021-01-29 15:33:44 +01:00
mathieui
d227579d56
xmlstream: set disconnected future on event
2021-01-29 15:33:44 +01:00
mathieui
571774edb4
xmlstream: end the parser when the stream has ended
2021-01-29 15:33:44 +01:00
mathieui
456dff0b61
xmlstream: rename run_filters
2021-01-29 15:33:44 +01:00
mathieui
a0b6bfcefe
xmlstream: change the connection logic
...
* use asyncio wait_for to wait for a disconnected event
* abort the connection if the timeout is not enough
2021-01-29 15:33:44 +01:00
mathieui
9fbd40578c
xmlstream: purge send queue and pending tasks on session end
...
and keep track of slow tasks
2021-01-29 15:33:44 +01:00
mathieui
8700f8d162
xmlstream: do not cancel the send filter task
...
it does not make sense to cancel it, it does not do anything when the
sending queue is empty, and clients should not fill the send queue when
not connected anyway.
2021-01-28 17:54:40 +01:00
mathieui
efdcd396d8
xmlstream: fix race conditions on handlers
2021-01-28 17:54:40 +01:00
mathieui
0eed84d0b2
xmlstream: handle done tasks in wait_until
...
and handle other loops properly
2021-01-28 17:54:40 +01:00
mathieui
370abb1d98
Merge branch 'block-threaded-examples-docs' into 'master'
...
Remove the remaining block and threaded from examples
See merge request poezio/slixmpp!105
2021-01-27 00:20:31 +01:00
mathieui
51866f0d46
docs: update the tutorials a bit
2021-01-27 00:16:56 +01:00
mathieui
9390794401
examples: updates to reflect asyncio
2021-01-27 00:09:26 +01:00
mathieui
70b5081018
Merge branch 'xep-0382-spoiler-messages' into 'master'
...
XEP-0382: Spoiler Messages
See merge request poezio/slixmpp!100
2021-01-27 00:07:36 +01:00
mathieui
4cb679ae2a
Merge branch 'fix-emoji-update' into 'master'
...
XEP-0444: Fix emoji detection
See merge request poezio/slixmpp!103
2021-01-24 11:33:57 +01:00
mathieui
ab280b44cc
XEP-0444: Fix emoji detection
...
the emoji lib just released a major release after 5 years, which breaks
the API. This new code is compatible with both.
2021-01-24 11:31:17 +01:00
mathieui
0193667ace
Merge branch 'ping-cancel-iqs-on-session-end' into 'master'
...
Cancel 0199 pings on session end
See merge request poezio/slixmpp!102
2021-01-24 11:30:51 +01:00
mathieui
9cb5131f1c
XEP-0199: Fix handler default parameter, add typing
...
Clear futures when disabling the keepalive, and do it on every
disconnect instead of only at session end.
2021-01-24 11:20:43 +01:00
mathieui
0bf1b96859
Merge branch 'handle-connection-errors-in-starttls' into 'master'
...
Handle connection errors in start_tls (fix #3449 )
Closes #3449
See merge request poezio/slixmpp!101
2021-01-24 10:30:45 +01:00
mathieui
c6a0da63ae
XEP-0199: cancel ongoing handlers on session end
...
and keep track of them but be careful to not store too many
fix for #3442
2021-01-22 22:57:15 +01:00
mathieui
3f10dfe138
iq: only update the future if it is not done
2021-01-22 22:55:39 +01:00
mathieui
49577e6c84
Handle connection errors in start_tls ( fix #3449 )
2021-01-22 22:04:41 +01:00
mathieui
04dcc8628d
XEP-0382: update DOAP file
2021-01-22 19:24:11 +01:00
mathieui
81ebf4e8ba
XEP-0382: Spoiler Messages
2021-01-22 18:40:37 +01:00
mathieui
b784b68bcd
Merge branch 'disconnect-event-after-cleanup' into 'master'
...
XMLStream: Only fire "disconnected" after removal of related objects
See merge request poezio/slixmpp!99
2021-01-19 21:12:52 +01:00
mathieui
f38c61a6b9
XMLStream: Only fire "disconnected" after removal of related objects
...
Otherwise we could end up reconnecting and getting some useful things
like the XML parser or other stuff removed afterwards.
Also, move 'session_end' before 'disconnected', it makes more sense that
way.
2021-01-17 18:30:57 +01:00
Link Mauve
2631b25e3e
Merge branch 'ad-mucjoin-component-event' into 'master'
...
XEP-0045: Add a groupchat_join MUC event for components
See merge request poezio/slixmpp!98
2021-01-12 20:36:36 +01:00
mathieui
2b11d81b86
XEP-0045: Add a groupchat_join MUC event for components
2021-01-12 20:29:27 +01:00
Link Mauve
ca465032e7
Merge branch 'xep-0045-fixes-misc' into 'master'
...
Misc fixes for XEP-0045
See merge request poezio/slixmpp!97
2021-01-10 15:12:20 +01:00
mathieui
6369ee0e5f
XEP-0045: Better component handling
2021-01-10 15:07:48 +01:00
mathieui
1e23167ce4
XEP-0045: Better "groupchat_presence" targeting
...
(do not make EVERY SINGLE presence go through the 0045 handler)
2021-01-10 15:07:48 +01:00
mathieui
cccc1253aa
XEP-0045: add more elements (<actor/>)
2021-01-10 15:07:48 +01:00
mathieui
fb31e9c1fd
Merge branch 'test-skip-dependency' into 'master'
...
CI: Skip test if the emoji dep is not here
See merge request poezio/slixmpp!96
2021-01-10 11:27:48 +01:00
mathieui
b4dd1e0132
CI: Skip test if the emoji dep is not here
2021-01-10 11:12:00 +01:00
Link Mauve
525855c17b
Fix homepage in DOAP. Thanks mathieui!
2021-01-01 14:35:55 +01:00
mathieui
ce0d615786
Merge branch 'muc-mypy-fixes' into 'master'
...
XEP-0045: Fix issues found by mypy
See merge request poezio/slixmpp!95
2020-12-27 19:44:31 +01:00
Emmanuel Gil Peyrot
1e08c90018
XEP-0045: Add a set_subject() helper
2020-12-27 02:59:43 +01:00
Emmanuel Gil Peyrot
c05cafc963
XEP-0045: Add missing reason for affiliation and role changes
...
This is especially useful for ban/kick reasons.
2020-12-27 02:59:09 +01:00
Emmanuel Gil Peyrot
166b265de0
XEP-0045: Fix issues found by mypy
2020-12-27 01:14:17 +01:00
mathieui
d91eea3a3a
Merge branch 'fix-moderation-stanzaid' into 'master'
...
XEP-0425: Use stanzaid in integration test
See merge request poezio/slixmpp!93
2020-12-14 19:04:50 +01:00
mathieui
569b9c5ee2
XEP-0425: Use stanzaid in integration test
...
It only worked due to a prosody quirk
2020-12-14 18:59:51 +01:00
Maxime Buquet
a3ca4c11c3
Merge branch 'retract-in-groupchats' into 'master'
...
XEP-0424: fire event even with groupchat messages
See merge request poezio/slixmpp!92
2020-12-13 23:39:12 +01:00
mathieui
489e419e38
XEP-0424: fire event even with groupchat messages
2020-12-13 22:48:17 +01:00
Link Mauve
0b2594aa2c
Merge branch 'doap-predict-next-version' into 'master'
...
doap: add next release link
See merge request poezio/slixmpp!91
2020-12-12 16:59:36 +01:00
mathieui
1b3a00c894
doap: add next release link
2020-12-12 16:57:07 +01:00
Link Mauve
ef201b6ae9
Merge branch 'oopsdate-doap' into 'master'
...
doap: replace NEXT with 1.6.0
See merge request poezio/slixmpp!90
2020-12-12 16:55:03 +01:00
mathieui
69af0fc1dc
doap: replace NEXT with 1.6.0
2020-12-12 16:52:42 +01:00
mathieui
7ecdc7fced
Merge branch 'update-slix-version' into 'master'
...
Release: update version to 1.6.0
See merge request poezio/slixmpp!89
2020-12-12 16:44:34 +01:00
mathieui
39c624f958
Release: update version to 1.6.0
2020-12-12 16:43:29 +01:00
Link Mauve
4c9591d5c9
Merge branch 'create-extras-require' into 'master'
...
setup.py: Move emoji and aiohttp to extras_require
See merge request poezio/slixmpp!88
2020-12-12 16:33:15 +01:00
mathieui
31841ef3bf
setup.py: Move emoji and aiohttp to extras_require
2020-12-12 16:30:34 +01:00
Link Mauve
6773dc4409
Merge branch 'fix-moderation' into 'master'
...
XEP-0425: small fix & integration test
See merge request poezio/slixmpp!86
2020-12-12 14:51:25 +01:00
Link Mauve
71888b24a6
Merge branch 'retraction-event' into 'master'
...
XEP-0424: Add an event for message retraction
See merge request poezio/slixmpp!87
2020-12-12 14:45:49 +01:00
mathieui
3b00c56bdc
XEP-0424: Add an event for message retraction
...
+ update the integration test
2020-12-12 14:43:18 +01:00
mathieui
bf17c32705
XEP-0425: Add integration test
2020-12-12 14:34:43 +01:00
mathieui
bc58c5a045
XEP-0425: Fix plugin registration, and add element
2020-12-12 14:33:48 +01:00
Link Mauve
d6be776640
Merge branch 'move-plugin-index-away' into 'master'
...
docs: move the plugin index away from the main page
See merge request poezio/slixmpp!85
2020-12-10 21:15:17 +01:00
mathieui
878870255f
docs: move the plugin index away from the main page
...
it’s too big
2020-12-10 20:45:26 +01:00
Link Mauve
1e2d15b8f5
Merge branch 'docs-event-sphinx-plugins' into 'master'
...
Docs: add more events, add plugins to the doc
See merge request poezio/slixmpp!84
2020-12-10 19:45:30 +01:00
mathieui
155fc58a22
docs: add sphinx_autodoc_typehints dep
2020-12-10 19:22:40 +01:00
mathieui
95d40a3ca3
docs: update docstrings for sphinx conformity
...
Remove most references to timeout/callback/ifrom/timeout_callbacks args
2020-12-10 19:22:40 +01:00
mathieui
010bf6dd70
docs: fix rest issues
2020-12-10 19:22:40 +01:00
mathieui
9d61655215
docs: Add plugins
2020-12-10 19:22:40 +01:00
mathieui
f768a980d8
docs: update event index
2020-12-10 19:22:38 +01:00
mathieui
d371828041
Merge branch 'rai' into 'master'
...
XEP-0437: Room Activity Indicators
See merge request poezio/slixmpp!83
2020-12-08 18:59:04 +01:00
mathieui
b63dc3bc8c
XEP-047: Room Activity Indicators
...
Implement the XEP
2020-12-08 18:56:26 +01:00
Link Mauve
8258202681
Merge branch 'xep-0333-fixes' into 'master'
...
XEP-0333: Fix some issues
See merge request poezio/slixmpp!80
2020-12-07 21:25:18 +01:00
Link Mauve
c892fba778
Merge branch 'xep-0439-improved' into 'master'
...
XEP-0439: add events & tests
See merge request poezio/slixmpp!82
2020-12-07 21:21:43 +01:00
mathieui
758dfb930c
XEP-0439: add integration tests
2020-12-07 20:59:04 +01:00
mathieui
91c3d64ca2
XEP-0439: Add events
2020-12-07 20:58:16 +01:00
mathieui
340b0f0f16
Merge branch 'no-emoji-required' into 'master'
...
CI: do not require the emoji package
See merge request poezio/slixmpp!81
2020-12-07 20:32:27 +01:00
mathieui
a1ef32a122
CI: do not require the emoji package
2020-12-06 21:58:10 +01:00
mathieui
ef6dab81b9
itests: Add a chat markers test
2020-12-06 21:45:53 +01:00
mathieui
b3e2a8eb91
XEP-0333: Add missing feature, and a send_marker method
2020-12-06 21:45:22 +01:00
mathieui
11ac5867ff
XEP-0333: Rename plugin file from "hints" to "markers"
2020-12-06 21:29:11 +01:00
mathieui
a61f2248fd
Merge branch 'update-readme' into 'master'
...
README: document integration tests
See merge request poezio/slixmpp!79
2020-12-06 21:01:16 +01:00
mathieui
7a4ea4c1ae
README: document integration tests
2020-12-06 20:59:00 +01:00
Link Mauve
c0acb7e34f
Merge branch 'more-tests' into 'master'
...
Add more integration tests
See merge request poezio/slixmpp!78
2020-12-06 19:24:08 +01:00
mathieui
c89a21463f
XEP-0444: fix a mistake in plugin_end
2020-12-06 18:59:59 +01:00
mathieui
1836b2b887
itests: add another bunch of tests
2020-12-06 18:59:59 +01:00
mathieui
12e3c9988d
itests: fix muc test name
2020-12-06 18:59:59 +01:00
mathieui
b8f368acf3
Integration tests: parallelize client connects
2020-12-06 18:41:21 +01:00
mathieui
bcd8cf085f
Merge branch 'no-ordered-stuff' into 'master'
...
Remove usage of OrderedDict
See merge request poezio/slixmpp!77
2020-12-06 17:08:00 +01:00
Emmanuel Gil Peyrot
cd4c9f82fc
Remove OrderedDict usage
...
We now support only Python 3.7+, this means we can rely on dict being
ordered by order of insertion, and thus no need to use OrderedDict from
collections.
2020-12-06 17:00:47 +01:00
mathieui
73cc2a4008
Merge branch 'first-integration-tests' into 'master'
...
First integration tests
See merge request poezio/slixmpp!75
2020-12-05 17:37:50 +01:00
Link Mauve
aa5d422f38
Merge branch 'doap' into 'master'
...
DOAP di doap
See merge request poezio/slixmpp!76
2020-12-05 01:20:45 +01:00
Emmanuel Gil Peyrot
684247b375
XEP-0352: Only enable the feature on ClientXMPP
2020-12-05 01:05:16 +01:00
Emmanuel Gil Peyrot
6db5bb65d3
XEP-0300: Fix tests
2020-12-05 01:00:52 +01:00
Emmanuel Gil Peyrot
cc96e4a6e7
Plugins: Update the list to match what’s available
...
Piugins for deprecated and obsolete XEPs aren’t loaded by default
anymore.
2020-12-05 01:00:27 +01:00
Emmanuel Gil Peyrot
bb3c61f6e0
DOAP: Add all of the releases
2020-12-04 23:58:13 +01:00
Emmanuel Gil Peyrot
2c764b7c7d
DOAP: List the correct versions and support status
2020-12-04 23:58:09 +01:00
mathieui
77587a4843
CI: add integration tests to the gitlab pipeline
2020-12-04 23:08:00 +01:00
mathieui
2cb2fcefbf
Add some very basic integration tests
2020-12-04 23:06:50 +01:00
mathieui
d3dc09ce94
CI: add a script to run integration tests
...
(same as run_tests.py, but use adifferent directory)
2020-12-04 23:04:21 +01:00
mathieui
e6d1badb81
CI: Add helper for integration tests
2020-12-04 23:01:54 +01:00
mathieui
3d1e539d2b
XMLStream: Add a wait_until coroutine
...
It will set a disposable handler on an event and wait on it with a
specific timeout. Useful for integration tests without callback hell.
2020-12-04 22:59:34 +01:00
Link Mauve
05749c4969
Merge branch 'more-xeps' into 'master'
...
Add a batch of newer XEPs
See merge request poezio/slixmpp!69
2020-12-04 20:03:32 +01:00
mathieui
c2b09c5c83
Update doap.xml
2020-12-04 19:49:41 +01:00
mathieui
fdb0749cd1
XEP-0422,0424,0425,0439: Add basic stanza tests
2020-12-04 19:45:05 +01:00
mathieui
2c523d1a3b
XEP-0439: Quick Response
2020-12-04 19:42:23 +01:00
mathieui
41dea80d94
XEP-0425: Message Moderation
2020-12-04 19:42:23 +01:00
mathieui
c4ca15a040
XEP-0424: Message Retraction
2020-12-04 19:14:32 +01:00
mathieui
54d556280a
XEP-0428: Fallback Indication
2020-12-04 19:14:32 +01:00
mathieui
c63e9a32b9
XEP-0359: Unique and Stable Stanza IDs
...
(was partially supported in places before)
2020-12-04 19:14:30 +01:00
mathieui
58c3579f74
XEP-0422: Message Fastening
2020-12-04 19:13:55 +01:00
Link Mauve
e592a46c99
Merge branch 'add-363' into 'master'
...
XEP-0363: Add 0363 to the extension list
See merge request poezio/slixmpp!74
2020-12-04 19:12:34 +01:00
mathieui
fa6fe5e851
CI: install aiohttp as well
2020-12-04 19:10:46 +01:00
mathieui
6c52843d71
XEP-0363: Add 0363 to the extension list
2020-12-04 18:55:55 +01:00
Link Mauve
d660e447ee
Merge branch 'fix-reactions' into 'master'
...
XEP-0444: Fix session_bind()
See merge request poezio/slixmpp!73
2020-12-04 18:36:25 +01:00
mathieui
70cf35e9bf
XEP-0444: Fix session_bind()
...
wrong method called: remove_feature instead of del_feature
2020-12-04 18:34:27 +01:00
mathieui
5c5780503a
Merge branch 'xep-0353' into 'master'
...
XEP-0353: Jingle Message Initiation
See merge request poezio/slixmpp!72
2020-12-04 13:14:24 +01:00
Emmanuel Gil Peyrot
203628d707
XEP-0353: Jingle Message Initiation
2020-12-04 12:38:59 +01:00
Link Mauve
922ad8d9ea
Merge branch 'muc-more' into 'master'
...
MUC: Fix invite/decline issue and add basic stanza tests
See merge request poezio/slixmpp!71
2020-12-04 00:30:13 +01:00
mathieui
8eb756d55c
XEP-0045: Add basic stanza tests
2020-12-04 00:27:26 +01:00
mathieui
4da1c8573e
XEP-0045: Register the missing invite/decline element
2020-12-04 00:22:22 +01:00
mathieui
380f0e4e38
Tests: Remove tabnanny
...
it is not actively useful and takes 70% of the time of the tests
2020-12-04 00:20:51 +01:00
mathieui
56f44dc47d
Merge branch 'muc-improvements' into 'master'
...
MUC improvements
See merge request poezio/slixmpp!70
2020-12-03 23:50:14 +01:00
mathieui
fa7e33110f
XEP-0045: Misc small fixes.
2020-12-03 23:28:27 +01:00
mathieui
7033bc0061
XEP-0045: Better invitation handling
2020-12-03 23:28:27 +01:00
mathieui
98b9a6f9e3
XEP-0045: Remove "self" returns from stanza methods
2020-12-03 23:28:27 +01:00
mathieui
de548fbcce
XEP-0045: Add status_codes interface to the MUC element
2020-12-03 23:28:27 +01:00
mathieui
af46efc12a
Merge branch 'doap' into 'master'
...
DOAP: Add the list of XEPs we support
See merge request poezio/slixmpp!68
2020-12-02 19:30:08 +01:00
Emmanuel Gil Peyrot
88132def60
DOAP: Add the list of XEPs we support
...
This comes from slixmpp/plugins/__init__.py
2020-12-02 19:27:58 +01:00
Link Mauve
26db6175f2
Merge branch 'doap' into 'master'
...
doap.xml
See merge request poezio/slixmpp!54
2020-12-02 19:22:53 +01:00
mathieui
4d5586f4a1
Merge branch 'mix-implementation' into 'master'
...
First try at a MIX implementation
See merge request poezio/slixmpp!63
2020-12-02 19:19:14 +01:00
mathieui
4eb2bb7da8
ElementBase: serialize JID objects as strings automatically
...
This is a shortcut to avoid defining custom methods each time a
substanza containing a JID exists in a plugin.
Same thing with attributes, there is no place where we do not want this.
2020-12-02 19:17:33 +01:00
mathieui
15bf6bc827
XEP-0405: add basic stanza tests
2020-12-02 19:17:33 +01:00
mathieui
3d1615ea54
XEP-0369: add basic stanza tests
2020-12-02 19:17:33 +01:00
mathieui
350f85a8d1
XEP-0403: MIX-Presence
2020-12-02 19:17:33 +01:00
mathieui
b62ea49de3
XEP-0404: MIX-Anon: JID hidden channels
...
(not found)
2020-12-02 19:17:33 +01:00
mathieui
bdc12c00c6
XEP-0405: MIX-PAM
2020-12-02 19:17:33 +01:00
mathieui
51cc459bd0
XEP-0369: MIX-Core
2020-12-02 19:17:33 +01:00
Link Mauve
54b9721f3a
Merge branch 'xep-0047-fix-sequence-number' into 'master'
...
XEP-0047: Fix the max sequence number
See merge request poezio/slixmpp!67
2020-12-02 17:28:03 +01:00
Link Mauve
c20b72376e
Merge branch 'muc-update' into 'master'
...
XEP-0045 examples: remove wait arg to join_muc calls
See merge request poezio/slixmpp!66
2020-12-02 17:27:47 +01:00
mathieui
b27510f05b
XEP-0047: Fix the max sequence number
...
The max seq allowed according to the XEP is 65535, therefore we must
modulo using 65536 to allow that value.
2020-12-01 20:13:34 +01:00
mathieui
45a14871ee
Examples: remove wait arg to join_muc calls
...
it hasn’t worked in years, and I removed it recently
2020-12-01 19:51:33 +01:00
mathieui
6ff5162fb4
Merge branch 'adhoc-execute-next' into 'master'
...
Allow execute to be used with the meaning of 'next'.
Closes #3432
See merge request poezio/slixmpp!13
2020-11-27 20:21:12 +01:00
mathieui
c3a6352a6b
Merge branch 'fix-xep_0115-disco-component' into 'master'
...
Fix 'from' attribute missing for ComponentXMPP Disco IQ
Closes #3455
See merge request poezio/slixmpp!60
2020-11-27 20:06:53 +01:00
Link Mauve
086dc894d1
Merge branch 'remove-protoxep-occupantid' into 'master'
...
Remove protoxep_occupantid
See merge request poezio/slixmpp!65
2020-11-27 20:03:41 +01:00
mathieui
a245ba54bd
Remove protoxep_occupantid
...
And fix some minor details in 0421 plugin.
2020-11-27 20:02:03 +01:00
Link Mauve
c86a6ad299
Merge branch 'xep-0444-and-not-protoxep' into 'master'
...
Promote protoxep_reactions to XEP-0444
See merge request poezio/slixmpp!64
2020-11-27 19:54:13 +01:00
mathieui
7e4b664742
Install emoji in docker
2020-11-27 19:46:42 +01:00
mathieui
ddc3974d1b
Update protoxep_reactions to XEP-0444
2020-11-27 19:44:13 +01:00
Link Mauve
9b5ab741c8
Merge branch 'xep-45-misc-fixes' into 'master'
...
Misc fixes for xep-0045
See merge request poezio/slixmpp!62
2020-11-26 20:48:44 +01:00
mathieui
a9a7bdc6c3
XEP-0045: update methods for asyncio & stanza, typing
...
- This rewrites most of the stuff in the plugin by using the newly added
elements instead of raw ElementTree stuff with hardcoded namespaces.
- Adds methods for affiliation/roles
- Adds some type hints
- Fix many cases where the call would simply not work since slixmpp
exists (and break the API but it was already broken ¯\_(ツ)_/¯)
2020-11-26 20:47:21 +01:00
mathieui
fe68d19f91
XEP-0045: register the new elements & reformat init
2020-11-22 18:11:18 +01:00
mathieui
fe46643f2f
XEP-0045: add more stanza elements
2020-11-22 18:11:18 +01:00
Maxime Buquet
985505297c
Merge branch 'master' into 'master'
...
Cancel run_filters task upon disconnect
See merge request poezio/slixmpp!57
2020-10-01 17:15:06 +02:00
Maxime Buquet
0b38eeaa4a
Merge branch 'xep-0363-callback-fix' into 'master'
...
XEP-0363 fix: call callback when receiving the upload slot.
See merge request poezio/slixmpp!58
2020-10-01 13:52:28 +02:00
Maxime Buquet
4dbabfa211
Merge branch 'stanzabase-docstring' into 'master'
...
StanzaBase.send: remove inexisting param in docstring -- thanks elghinn
See merge request poezio/slixmpp!61
2020-10-01 13:08:44 +02:00
Maxime “pep” Buquet
57c8196d9c
StanzaBase.send: remove inexisting param in docstring -- thanks elghinn
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2020-10-01 13:06:37 +02:00
aearil
f90713cb9e
Fix 'from' attribute missing for ComponentXMPP Disco IQ
...
Fixes #3455
This reuses the 'to' attribute of the received presence as a 'from' for
the Disco IQ. I don't know if this is the best way to do it, but in
testing with a simple component it fixed the error.
Also I'm not sure whether pres['to'] would also be valid when
is_component is False.
2020-08-05 20:35:30 -04:00
Maxime Buquet
9b9ace97f4
Merge branch 'muc-package' into 'master'
...
XEP-0045: Move into a package module. Add MUCMessage stanza plugin
See merge request poezio/slixmpp!56
2020-07-08 11:03:23 +02:00
Maxime “pep” Buquet
d497f94e6f
Revert "Merge branch 'muc-stanza-format' into 'master'"
...
This reverts commit cde9ac123d , reversing
changes made to bb61f0f39d .
2020-07-08 10:53:03 +02:00
Maxime Buquet
cde9ac123d
Merge branch 'muc-stanza-format' into 'master'
...
Muc stanza format
See merge request poezio/slixmpp!59
2020-07-08 10:23:05 +02:00
Maxime “pep” Buquet
c8d1eaa2dc
xep_0045: also return default value when attr doesn't exist
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2020-07-08 10:21:16 +02:00
Maxime “pep” Buquet
200e1a6128
xep_0045: Make format string actually format strings
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2020-07-08 10:20:58 +02:00
cnngimenez
9c7f3d59d8
XEP-363 fix: call callback when receiving the upload slot.
2020-06-28 21:01:40 -03:00
ehendrix23
145bb7a36e
Cancel run_filters task upon disconnect
2020-06-12 19:03:58 +02:00
Maxime “pep” Buquet
67fb5fe4c3
XEP-0045: register_stanza_plgin(Message, MUCMessage)
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2020-05-29 23:35:31 +02:00
Maxime “pep” Buquet
605a58a864
XEP-0045: Split __init__
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2020-05-29 23:35:31 +02:00
Maxime “pep” Buquet
a3d343b253
XEP-0045: Add MUCMessage
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2020-05-29 23:35:31 +02:00
Maxime “pep” Buquet
d58f59980f
XEP-0045: Remove unused MUCPresence attributes
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2020-05-29 23:35:31 +02:00
Maxime “pep” Buquet
9e8ac6b769
XEP-0045: Add some types in stanza
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2020-05-29 23:35:31 +02:00
Maxime “pep” Buquet
3b3eed544e
XEP-0045: Add stanza.NS* consts
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2020-05-29 17:27:51 +02:00
Maxime “pep” Buquet
03ee9bc4cc
XEP-0045: Split stanza into sub-module
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2020-05-29 17:25:18 +02:00
Maxime “pep” Buquet
4fad5c62ce
XEP-0045: Remove useless Python2-ness
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2020-05-29 14:15:28 +02:00
Maxime “pep” Buquet
5ccae3ce2a
XEP-0045: Change to a package module
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2020-05-29 14:15:04 +02:00
Maxime “pep” Buquet
a104e3722e
XEP-0045: Move into a package module. Add MUCMessage stanza plugin
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2020-05-29 01:33:32 +02:00
mathieui
bb61f0f39d
Merge branch 'xep-0421' into 'master'
...
New XEP: 0421 Occupant-id
See merge request poezio/slixmpp!55
2020-05-28 00:35:48 +02:00
Maxime “pep” Buquet
a29ce4b547
XEP-0421: Add shorthand to namespace
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2020-05-27 23:45:41 +02:00
Maxime “pep” Buquet
07b1a4c1cd
XEP-0421: add has_feature helper
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2020-05-27 22:39:52 +02:00
Maxime “pep” Buquet
cec34686fc
New XEP: 0421 Occupant-id
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2020-05-27 22:39:52 +02:00
Maxime “pep” Buquet
03148ed92e
WIP: doap.xml
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2020-05-24 22:59:05 +02:00
Maxime Buquet
6f4e9b485f
Merge branch 'plugin-377' into 'master'
...
Add a plugin for XEP-0377: spam reporting
See merge request poezio/slixmpp!53
2020-05-24 15:05:24 +02:00
mathieui
28123083f7
Add stanza tests for 0377
2020-05-24 15:00:20 +02:00
mathieui
ef961392be
Enforce <spam/> and <abuse/> quantity constraints
2020-05-24 13:46:47 +02:00
mathieui
2e31de3f45
Add a plugin for XEP-0377: spam reporting
2020-05-24 13:33:51 +02:00
mathieui
8a52730f11
Merge branch 'tutorial' into 'master'
...
Tutorial - english and polish version.
See merge request poezio/slixmpp!33
2020-05-24 13:05:56 +02:00
mathieui
04df50feac
Merge branch 'release-slix-1.5.2' into 'master'
...
Update version to 1.5.2
See merge request poezio/slixmpp!52
2020-05-23 23:46:01 +02:00
mathieui
c7bd224182
Update version to 1.5.2
2020-05-23 23:43:27 +02:00
mathieui
bac1e9b44a
Merge branch 'muc-presence' into 'master'
...
xep_0045: don't create empty item
See merge request poezio/slixmpp!51
2020-05-22 16:32:27 +02:00
Maxime “pep” Buquet
b62f0e90c1
xep_0045: don't create empty item
...
Only create an item if an attribute is set. Don't create it when reading
if it wasn't already present.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2020-05-20 00:37:46 +02:00
mathieui
9ace053992
Merge branch 'upload-filetoobig' into 'master'
...
xep_0363: pass more information to FileTooBig exception
See merge request poezio/slixmpp!50
2020-05-12 01:53:00 +02:00
Maxime “pep” Buquet
c7cd2fcf33
xep_0363: pass more information to FileTooBig exception
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2020-05-12 01:49:56 +02:00
Maxime Buquet
e57289358f
Merge branch 'upload-disco-form' into 'master'
...
xep_0363: Ensure every form in disco#info is read
See merge request poezio/slixmpp!49
2020-05-12 01:04:41 +02:00
Maxime “pep” Buquet
4aa35c11ab
xep_0363: Ensure every form in disco#info is read
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2020-05-12 01:03:50 +02:00
mathieui
d6f7d32bbe
Merge branch 'version-1.5.1' into 'master'
...
Update version to 1.5.1
See merge request poezio/slixmpp!47
2020-05-02 19:44:54 +02:00
mathieui
0dd32be7f5
Update version to 1.5.1
...
1.5.0 changed what could be expected to be sent before calling
disconnect(), this fixes it.
2020-05-02 19:39:21 +02:00
Maxime Buquet
bf69698af1
Merge branch 'add-forever-false-examples' into 'master'
...
Add forever=False to some examples to make them terminate
See merge request poezio/slixmpp!46
2020-05-02 17:54:50 +02:00
Maxime Buquet
aa732b3c94
Merge branch 'fix-disconnect-send-queue' into 'master'
...
Fix a regression introduced in 1.5.0
See merge request poezio/slixmpp!45
2020-05-02 17:35:17 +02:00
mathieui
d076cef023
Add forever=False to some examples to make them terminate
2020-05-02 17:34:11 +02:00
mathieui
f884b67b8b
Fix a regression introduced in 1.5.0
...
Due to the send queue, messages sent immediatly before calling
"disconnect" would not be sent.
2020-05-02 17:17:08 +02:00
Maxime Buquet
0d3116dbdf
Merge branch 'fix-start-handlers' into 'master'
...
Change session_start callback to async in most examples
See merge request poezio/slixmpp!44
2020-05-02 16:51:51 +02:00
mathieui
f1ab9ab964
Change session_start callback to async in most examples
...
If we fetch the roster, we should probably wait until we get it back
2020-05-02 16:47:04 +02:00
mathieui
e520ab1f5e
Merge branch 'release-1.5.0' into 'master'
...
Update version to 1.5.0
See merge request poezio/slixmpp!43
2020-05-01 16:00:58 +02:00
mathieui
3dcb96d9d8
Update version to 1.5.0
2020-05-01 15:26:24 +02:00
Maxime Buquet
0a7a4c3abe
Merge branch 'python-version' into 'master'
...
Update Python version minimum requirement to 3.7
See merge request poezio/slixmpp!42
2020-05-01 15:14:49 +02:00
Maxime “pep” Buquet
a4bbc404ed
Update Python version minimum requirement to 3.7
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2020-05-01 15:13:19 +02:00
Paulina
1314e70460
Changing the use of 'threading' in python for more suitable 'subprocesses'. Change of English names to Polish equivalents, as requested by the authors.
2020-04-14 21:21:35 +02:00
Paulina
f84bfce5f3
Correction and editing of the tutorials.
...
[100%] English version
[100%] Polish version
[100%] Both version consistency check
[98 %] Final sanity check + formating
2020-04-10 12:37:31 +02:00
Maxime “pep” Buquet
c3fbc6cb80
xep_0196: Use correct tag local name (thanks ivucica)
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2020-04-06 12:57:12 +02:00
Maxime “pep” Buquet
355d789061
docs: remove andyet logo/link on every page
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2020-04-06 12:57:12 +02:00
mathieui
47ed67c04e
Merge branch 'add-github-pr-template' into 'master'
...
Add a github pull request template
See merge request poezio/slixmpp!41
2020-04-04 20:06:23 +02:00
mathieui
34567f450a
Add a github pull request template
2020-04-04 20:04:23 +02:00
mathieui
9126bd8392
Merge branch 'fix-deprecations' into 'master'
...
Fix deprecation warning regarding invalid escape sequences.
See merge request poezio/slixmpp!40
2020-04-04 18:53:15 +02:00
mathieui
02202f7cd8
Merge branch 'fix-nonetype-error' into 'master'
...
Fix an issue when deleting subelements: TypeError: 'NoneType' object is not an iterator
See merge request poezio/slixmpp!39
2020-04-04 18:44:25 +02:00
jheling
2add94f5b0
Fix TypeError: 'NoneType' object is not an iterator
...
When deleting sub-elements in a stanza.
2020-04-04 18:42:48 +02:00
Karthikeyan Singaravelan
5fc757f200
Fix deprecation warning regarding invalid escape sequences.
2020-04-04 16:08:44 +00:00
mathieui
98108d0445
Merge branch 'fix-celementtree-import' into 'master'
...
cElementTree has been deprecated since Python 3.3 and removed in Python 3.9.
See merge request poezio/slixmpp!38
2020-04-04 17:55:11 +02:00
Maxime Buquet
76f4fb49d6
Merge branch 'sync-fixes' into 'master'
...
Sync fixes
See merge request poezio/slixmpp!37
2020-04-04 15:28:59 +02:00
Georg Lukas
5be46a5e68
fire 'disconnected' callback from abort()
2020-04-04 13:16:33 +02:00
Georg Lukas
ab9040c30e
expose is_connecting state based on connection attempt future
2020-04-04 13:16:31 +02:00
Maxime Buquet
a16e2a0f6c
Merge branch 'fix-0198' into 'master'
...
XEP-0198: unset end_session_on_disconnect on resume/enable
See merge request poezio/slixmpp!36
2020-03-29 14:28:06 +02:00
Maxime Buquet
842aa3be8f
Merge branch 'fix-reconnect-2.0' into 'master'
...
Reset reconnect delay on manual reconnect, add delay event
See merge request poezio/slixmpp!35
2020-03-29 14:26:15 +02:00
Georg Lukas
6c28b49e7f
XEP-0198: unset end_session_on_disconnect on resume/enable
2020-03-29 14:21:40 +02:00
Georg Lukas
621255027d
Reset reconnect delay on manual reconnect, add delay event
...
This is just a hotfix workaround for an underlying problem. The
`_connect_routine` code is "blocking" (in an async way) for
`connect_loop_wait` seconds, so that a fresh-started manual reconnect
will be silenty delayed. This code does the following changes:
1. It moves the delay to before the DNS resolution (with the exponential
back-off it might well be that the DNS records are changed while
slixmpp is waiting).
2. It adds a new event `reconnect_delay` that gets passed the number of
seconds it will delay before actually reconnecting
3. It resets the `connect_loop_wait` timer on a manual connect/reconnect
call to fix the interactive experience.
A *proper fix* would replace the sleep in `_connect_routine` with a
properly timered re-invocation of it, but I don't understand enough of
asyncio for pulling off that magic, and this is actually a proper
improvement. Also I tested this and it works!
2020-03-29 14:21:05 +02:00
Maxime Buquet
efe316dc8c
Merge branch 'fix-0198' into 'master'
...
XEP-0198: properly disable on disconnect, fix reconnect-loop
See merge request poezio/slixmpp!34
2020-03-28 22:11:52 +01:00
Maxime Buquet
e9a87a0b77
Merge branch 'master' into 'master'
...
reconnect: fix callback when not currently connected
See merge request poezio/slixmpp!32
2020-03-28 22:11:34 +01:00
Georg Lukas
85c9967b9c
XEP-0198: fix race conditions on enable/resume
...
This code splits out the `enabled` property into `enabled_in` and
`enabled_out` to reflect that client and server enable 0198
asynchronously.
This also moves the actual enabling code into the stanza processing
logic, because apparently, `enable.send()` was just added into the end
of the send queue, but `enable` got enabled immediately, so that poezio
requested ACKs for whatever happened to be in the queue before.
Async is hard, let's go get fishing.
2020-03-28 21:49:18 +01:00
Georg Lukas
deb6d4f176
XEP-0198: properly disable on disconnect, fix reconnect-loop
...
When the connection is disconnected (but the session didn't "end",
because 0198 resumption is enabled), poezio will reconnect and try to
send an <r/> element because the 0198 plugin doesn't realize that SM
wasn't re-enabled yet.
2020-03-28 20:50:55 +01:00
Karthikeyan Singaravelan
7218bb4499
cElementTree has been deprecated since Python 3.3 and removed in Python 3.9.
2020-03-28 04:42:23 +00:00
Georg Lukas
d85efec7a2
reconnect: fix callback when not currently connected
...
The 'disconnected' event is normally fired from connection_lost(), which
is called by the connection code when the connection is lost after being
established. However, if the connection wasn't successfully established,
a manual /reconnect no-ops because it waits for the 'disconnected'
callback which never fires. This patch does two things:
1. Immediately fire a 'disconnected' event in disconnect() if there is
no transport.
2. Register the 'disconnected' event handler in reconnect() *before* it
can be fired.
2020-03-23 18:59:29 +01:00
Paulina
9fd8684c5a
Correction and editing of the tutorials.
...
[98 %] English version
[98 %] Polish version
[100%] Both version consistency check
[95 %] Final sanity check + formating
2020-03-21 17:08:31 +01:00
Paulina
fc77fb7648
Correction and editing of the tutorials.
...
[95 %] English version
[95 %] Polish version
[100%] Both version consistency check
[95 %] Final sanity check + formating
2020-03-15 18:02:46 +01:00
Paulina
c8d802a6c7
Correction and editing of the tutorials.
...
[95 %] English version
[95 %] Polish version
[100%] Both version consistency check
[80 %] Final sanity check + formating
2020-03-15 17:27:47 +01:00
Paulina
3529a36974
Merge branch 'tutorial' of https://lab.louiz.org/Hoacyn/slixmpp into tutorial
2020-03-15 15:27:36 +01:00
Paulina
fe6458303a
Correction and editing of the tutorials.
...
[85 %] English version
[90 %] Polish version
[45 %] Both version consistency check
[0 %] Final sanity check + formating
2020-03-15 15:26:21 +01:00
Paulina
b15d4aa0fa
Correction and editing of the tutorials.
...
[95 %] English version
[95 %] Polish version
[100%] Both version consistency check
[80 %] Final sanity check + formating
2020-03-15 15:17:00 +01:00
Paulina
01371041a3
Correction and editing of the tutorials.
...
[85 %] English version
[90 %] Polish version
[45 %] Both version consistency check
[0 %] Final sanity check + formating
2020-03-08 21:01:51 +01:00
Paulina
9c4e3956a7
Correction and editing of the tutorials.
...
[80 %] English version
[0 %] Polish version
[20 %] Both version consistency check
[0 %] Final sanity check
TODO:
- comments in the code blocks
- side-by-side consistency check
2020-02-29 10:31:52 +01:00
Paulina
cd5b47f76c
Eng and pl tutorials added.
2020-02-27 16:58:54 +01:00
mathieui
115c234527
Merge branch 'async-filters' into 'master'
...
Add async filters on the send process
See merge request poezio/slixmpp!24
2019-12-27 15:35:00 +01:00
mathieui
a0f5cb6e09
Put the queue exception at toplevel
2019-12-27 15:27:29 +01:00
mathieui
110bbf8afc
Improve the send queue code a bit
2019-12-27 15:27:29 +01:00
mathieui
d97efa0bd8
add a separate place for slow ass filters
2019-12-27 15:27:29 +01:00
mathieui
672f1b28f6
raise Exception
2019-12-27 15:27:29 +01:00
mathieui
27d3ae958b
Try/except around outbound stanza processing
...
to avoid killing the send loop when a filter has an error
2019-12-27 15:27:29 +01:00
mathieui
a32794ec35
Remove trailing whitespace
2019-12-27 15:27:28 +01:00
mathieui
aa11ba463e
Skip 0323 because
2019-12-27 15:27:28 +01:00
mathieui
a83c00e933
Update test framework to work with new filters
...
(eewww)
2019-12-27 15:27:28 +01:00
mathieui
31f6ef6814
Run the send queue in a separate coroutine
...
To be able to run async stream filters
2019-12-27 15:27:25 +01:00
Maxime “pep” Buquet
9b3874b5df
xep_0048: Ensure Conference jid is of type str when given a JID
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2019-11-11 14:00:19 +01:00
mathieui
0139fb291e
Fix a bug in the 0202 plugin where a time result would send back a result
...
poezio bug #3499
2019-09-19 22:54:53 +02:00
mathieui
e58988484a
Match the sender JID as well as the queryid in MAM results
2019-09-10 23:13:04 +02:00
mathieui
5d5e5cda19
Add typing/docstring in the MAM plugin
2019-09-10 22:44:46 +02:00
root
11f707987d
Added amount parameter, so that limit on the msgs received per query can be changed.
2019-09-08 14:22:48 +02:00
Maxime “pep” Buquet
db13794e0f
Revert "Remove a block of compatibility code"
...
This reverts commit 37bc1bb9b3 .
Confusion confusion. Mathieui thought this was a sleekxmpp thing when
it's actually been added not so long ago.
2019-08-28 00:12:10 +02:00
mathieui
37bc1bb9b3
Remove a block of compatibility code
...
even if the user makes that mistake, it does not cause problems down the
line.
2019-08-26 12:00:38 +02:00
mathieui
9be30e5291
fix a typo in the invalidjid exception name case
2019-08-25 01:42:00 +02:00
Maxime Buquet
9fe20a4056
Merge branch 'origin-id' into 'master'
...
Implement Origin-id (XEP-0359)
See merge request poezio/slixmpp!21
2019-08-23 17:10:42 +02:00
Maxime “pep” Buquet
3253d34c0a
basexmpp: Make origin-id opt-out
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2019-08-23 17:09:21 +02:00
Maxime “pep” Buquet
fef575ee1a
Implement origin-id (XEP-0359)
...
This XEP is not implemented as a plugin but directly into Message.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2019-08-23 17:09:21 +02:00
Maxime Buquet
540ff89427
Merge branch 'mam' into 'master'
...
Assign 'True' to 'before' tag if it's value is 'None'.
See merge request poezio/slixmpp!26
2019-08-23 16:37:12 +02:00
root
dd8ac8fc87
Assign True to the 'before' tag if it's value is None (eg:at the start no msg is there in the group, so no stanza-id)
2019-08-23 04:39:20 +05:30
Maxime Buquet
2249d878d1
Merge branch 'mam' into 'master'
...
Removed assigning 'reverse' value to the 'before' tag
See merge request poezio/slixmpp!25
2019-08-23 00:03:07 +02:00
root
89fa9dc1dd
Removed before tag. (Code for setting it is already there)
2019-08-23 00:21:42 +05:30
root
d7729e8683
Removed assigning 'reverse' value to the 'before' tag (It's value is set in xep_0313 (mam.py file) and if not then by default it is takes as 'None').
2019-08-23 00:15:56 +05:30
louiz’
d618f55dea
Merge branch 'mam' into 'master'
...
Added <before> tag for querying messages before a stanza-id.
See merge request poezio/slixmpp!23
2019-08-13 09:54:43 +02:00
Madhur Garg
b0e688eb35
Added <before> tag for querying messages before a stanza-id.
2019-08-12 23:39:01 +05:30
Maxime “pep” Buquet
0e7176483b
xep_0030: add docstring to get_info_from_domain
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2019-08-03 16:05:09 +02:00
Emmanuel Gil Peyrot
f35569a2c1
Remove the last instances of a block argument to iq.send().
...
Thanks Madhur Garg for spotting this in
027ce2434d7fd3cf4a286dd373cb761c0d114c66!
2019-08-01 22:36:59 +02:00
Link Mauve
bec6f7c8f3
Merge branch 'mam' into 'master'
...
Removed 'block' from set_preferences as it was giving a TypeError while sending the staza.
See merge request poezio/slixmpp!20
2019-08-01 22:30:58 +02:00
Madhur Garg
027ce2434d
Removed 'block' from set_preferences as it was giving a TypeError while sending the staza.
2019-08-02 01:57:36 +05:30
Maxime Buquet
d57fbb57a2
Merge branch 'mam' into 'master'
...
Added a function in xep313 plugin to get current MAM preferences.
See merge request poezio/slixmpp!19
2019-07-22 22:05:05 +02:00
Madhur Garg
85cd7a9166
Added a function to get current MAM preferences.
2019-07-18 16:55:11 +05:30
Maxime “pep” Buquet
d50d996c68
xmlstream/stanzabase: remove unused interfaces and types attributes
...
These are already on each stanza, and were not applicable to all stanzas
anyway.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2019-07-16 11:26:54 +02:00
mathieui
371ad20ca7
Do not add disco#info for occupantid, it’s a server thing
2019-07-14 13:25:22 +02:00
mathieui
5f49df6b56
Add the occupant id stanza elements
2019-07-14 13:13:59 +02:00
mathieui
b50bfb2f34
Initial commit for reactions protoxep
2019-07-13 19:44:32 +02:00
Maxime “pep” Buquet
b29bb30eb7
Make generated stanza id truly random
...
Fix long-standing security issues where stanza @id be predictable.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2019-07-13 14:07:31 +02:00
Maxime “pep” Buquet
4435c81d77
xmlstream.disconnect: add compat behaviour, set wait to default 2.0 when True is passed. Update documentation
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2019-07-03 21:36:17 +02:00
Madhur Garg
2638ba2744
Added 'reverse' argument.
2019-07-03 14:18:33 +05:30
Madhur Garg
dbc9758311
Added 'reverse' parameter in mam and rsm plugins
2019-07-03 10:31:18 +05:30
Maxime “pep” Buquet
47968963b1
Revert part of previous commit. Return NotImplemented when object is not a valid JID
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2019-05-07 11:56:39 +01:00
Maxime “pep” Buquet
4e8800f954
jid: return not equal if value can't be converted to JID
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2019-05-07 10:08:46 +01:00
Maxime “pep” Buquet
40053518aa
Merge remote-tracking branch 'origin/mr/13'
2019-04-27 12:59:23 +01:00
Maxime “pep” Buquet
1ee0f72ead
xmlstream.disconnect: fix frenchism in docstring
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2019-04-24 23:35:33 +01:00
Maxime “pep” Buquet
4bb81228ae
xmlstream.disconnect: typing hints
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2019-04-24 23:35:06 +01:00
Maxime “pep” Buquet
60a7a5b8df
presence: Ensure <show/> value is valid when returned as presence @type value
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2019-04-24 20:29:54 +01:00
Maxime “pep” Buquet
946674f424
xep_0045: Ensure <show/> value is valid.
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2019-04-24 20:28:58 +01:00
Maxime “pep” Buquet
412a9169bd
Fixes #3432 . Allow execute to be used with the meaning of 'next'.
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2019-04-14 02:34:22 +01:00
Maxime “pep” Buquet
72b355de8c
xep_0050: Fix indentation
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2019-04-14 02:19:58 +01:00
Maxime “pep” Buquet
af246dcfe1
slixmpp/jid: add types
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2019-04-07 23:14:44 +01:00
Maxime Buquet
9612e518fb
Merge branch 'master' into 'master'
...
Communicate the reason for a disconnect to the application
See merge request poezio/slixmpp!12
2019-04-07 00:24:50 +02:00
Maxime “pep” Buquet
fde8264191
xep_0202: Fix plugin_init docstring
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2019-04-06 13:44:05 +01:00
Maxime “pep” Buquet
1cdc656208
Fixes poezio/poezio#3472 : Don't remove TZ in 0202 utc tag
...
<utc/> MUST conform to 0082 dateTime profile and thus include a
timezone definition.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2019-04-06 13:42:26 +01:00
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
704161a285
mark end-of-stream as session-ending event
2019-03-26 15:16:52 +01:00
Georg Lukas
6b1b58a339
XEP-0199: use new 0-timeout reconnect() with reason
2019-03-26 12:09:43 +01:00
Georg Lukas
4f96e5fa75
Do not directly enqueue connect() as event handler, parameter mismatch
2019-03-26 12:09:43 +01:00
Georg Lukas
bcb90a653e
Do not close stream on 0-timeout disconnect, allows 0198 resume
2019-03-26 11:02:28 +01:00
Georg Lukas
7e435b703d
Propagate disconnect() reason into 'disconnected' event
2019-03-26 11:01:36 +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
mathieui
5629e44710
Merge branch 'patch-1' into 'master'
...
Fix slixmpp.ClientXMPP.cancel_connection_attempt()
See merge request poezio/slixmpp!10
2019-03-15 00:38:35 +01: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
2b666eb1de
Revert "Remove license from unused project"
...
This reverts commit fbab3ad214 .
2019-02-24 12:16:06 +00:00
Emmanuel Gil Peyrot
400e7a3903
Remove SocksiPy license
...
I wrote a SOCKS5 implementation back in
9c5dd024b1 , and removed SocksiPy from
slixmpp’s codebase at the same time.
2019-02-24 13:02:08 +01:00
Maxime “pep” Buquet
fbab3ad214
Remove license from unused project
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2019-02-24 12:00:16 +00:00
mathieui
628b357b06
Merge branch 'eme-add-method' into 'master'
...
xep_0380: Add add_eme method
See merge request poezio/slixmpp!11
2019-02-23 14:07:15 +01: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
ehendrix23
696a72247b
Fix slixmpp.ClientXMPP.cancel_connection_attempt()
2019-02-22 00:41:02 +01:00
Maxime “pep” Buquet
05d76e4b1d
Change more URLs to lab.louiz.org
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2019-02-12 10:34:57 +00:00
Maxime “pep” Buquet
d52d4fbbbe
Update project URLs to lab.louiz.org
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2019-02-12 10:26:04 +00:00
Maxime “pep” Buquet
e53c0fcb30
README: Add pep as a contributor
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2019-02-10 14:18:28 +00:00
Maxime “pep” Buquet
97d68c5196
setup.py: GTalk is no more
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net >
2019-02-10 14:18:28 +00:00
mathieui
b42fafabb4
Make the cache encode and decode not crash if something goes wrong
2019-02-02 17:42:24 +01:00
mathieui
3a44ec8f15
Add tests for the cache api
2019-02-02 17:32:10 +01:00
mathieui
93f385562f
Add a "remove" action on the cache API
2019-02-02 17:31:48 +01:00
mathieui
9cab02438b
Fix XEP-0335
2019-02-02 15:41:55 +01:00
Emmanuel Gil Peyrot
74ed50e626
Set @id by default on outgoing messages and presences.
...
Respects RFC6120 §8.1.3’s RECOMMENDED.
2019-01-31 16:46:51 +01:00
mathieui
9d378c611c
Release 1.4.2
2019-01-31 14:50:26 +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
41419a2161
Fix authenticating on a non-TLS socket.
...
This was broken since c1562b76b2 .
2019-01-21 01:02:06 +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
15c6b775ff
Simplify the non-CDATA path of tostring.escape.
2019-01-09 15:03:05 +01:00
Emmanuel Gil Peyrot
4b482477e2
Split ns only once in fix_ns().
2019-01-09 14:57:39 +01:00
Emmanuel Gil Peyrot
f7e4caadfe
Split tag and attrib only once in tostring().
2019-01-09 14:55:27 +01:00
Emmanuel Gil Peyrot
5f25b0b6a0
Add a default timeout to iq.send().
...
This fixes a leak of MatchIDSender in handlers, making it more and more
expensive to match stanzas as more iqs have been sent.
2019-01-09 14:20:31 +01:00
Mateusz Piotrowski
d228bc42ea
Mention that GnuPG is required for tests
2018-12-27 17:21:12 +01:00
mathieui
ecdc44a601
Merge branch 'master' into 'master'
...
Decode bytes in GSSAPI handling, as expected by the kerberos module API.
See merge request poezio/slixmpp!8
2018-12-27 16:55:47 +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
Jelmer Vernooij
2d228bdb56
Decode bytes in GSSAPI handling, as expected by the kerberos module API.
2018-10-30 22:29:20 +00:00
mathieui
570e653ac2
Release slixmpp 1.4.1
2018-10-28 14:15:51 +01:00
mathieui
282a481059
Merge branch 'setup_dependency_fix' into 'master'
...
added aiohttp dependency
See merge request poezio/slixmpp!6
2018-10-28 14:08:26 +01:00
Florian Klien
f386db380b
docs: auto-set copyright year to current year
2018-10-28 10:48:23 +01:00
Florian Klien
7b87d98fff
auto set version of Slixmpp in Docs
...
getting version of slixmpp from source tree for documentation
2018-10-28 10:48:23 +01:00
Florian Klien
8779d40602
typo
2018-10-27 23:38:09 +02:00
Emmanuel Gil Peyrot
f0b21c42d5
examples: Add the possibility to use another HTTP File Upload domain.
2018-10-27 23:25:59 +02: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
Florian Klien
dc4936a6d3
added aoihttp dependency
...
slixmpp uses aiohttp in the XEP_0363 plugin.
2018-10-22 12:41:20 +02:00
Florian Klien
897610d819
fix: failUnlessEqual -> assertEqual
2018-10-15 14:59:23 +02:00
Florian Klien
d33366badd
fixing deprecation warnings for pytest
2018-10-15 14:59:23 +02:00
mathieui
809c500002
Add the loop parameters at places where it has been forgotten
2018-10-09 12:34:56 +02:00
Emmanuel Gil Peyrot
dda4e18b81
examples: Remove unused asyncio imports.
2018-10-09 10:57:19 +02:00
Emmanuel Gil Peyrot
8c09d932c8
stanzabase: Remove python2 legacy.
2018-10-03 14:56:07 +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
louiz’
ad0dc33df9
Trigger poezio’s build if this ours succeeded
2018-08-22 23:19:47 +02:00
Emmanuel Gil Peyrot
7c3b3827b4
jid: Make property aliases proper aliases.
2018-08-20 00:23:21 +01:00
Emmanuel Gil Peyrot
9f6fa65139
examples, tests: Replace all @asyncio.coroutines with proper async functions.
2018-08-19 17:47:26 +01:00
mathieui
35fa33e3c2
Release slixmpp 1.4.0
2018-08-12 21:11:21 +02:00
mathieui
86a2f280d2
Document that slixmpp is now 3.5+ only
2018-08-08 23:42:22 +02:00
mathieui
490f15b8fc
Fix compatibility with python 3.5 and 3.6
...
which do not have loop.start_tls and require the old ssl implementation.
2018-08-08 23:35:33 +02: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
20107ad516
features/starttls: handle the case where the socket is an sslobject
...
Thanks pep.
2018-08-07 23:30:41 +02:00
mathieui
7738a01311
Fix TLS with python 3.7
...
Use the "new" sslproto API instead of the deprecated TLS API.
Also remove the unused "socket" parameter in XMLStream.__init__.
2018-08-07 23:20:38 +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
0f690d4005
tests: Fix the XEP-0323 stream test, broken since 59d4420739.
...
Thanks debacle!
2018-08-02 21:27:19 +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
c55e9279ac
Fix missing async def in function.
2018-07-02 14:33:21 +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
louiz’
cdfb5d56fc
apt install gpg before running the ci tests
2018-06-10 21:40:56 +02:00
Emmanuel Gil Peyrot
d146ce9fb6
examples: Display only the form, and not the entire stanza.
2018-05-13 21:26:47 +02:00
Emmanuel Gil Peyrot
cb59d60034
examples: Display the actual cause for a failed command.
2018-05-13 21:21:06 +02:00
Emmanuel Gil Peyrot
1d9fe3553e
examples: Use the existing get_node_config function.
2018-05-13 21:13:22 +02:00
Emmanuel Gil Peyrot
fe66c022ad
Revert "XEP-0060: Add support for node configuration."
...
This reverts commit dd7f67d10d .
2018-05-13 21:12:46 +02:00
Emmanuel Gil Peyrot
92ea131721
examples: Add support for node configuration to pubsub_client.
2018-05-13 20:57:48 +02:00
Emmanuel Gil Peyrot
dd7f67d10d
XEP-0060: Add support for node configuration.
2018-05-13 20:47:21 +02:00
Emmanuel Gil Peyrot
c1562b76b2
slixmpp is Python 3.4.4+, remove check for channel binding.
2018-03-31 02:22:53 +02:00
Emmanuel Gil Peyrot
32839f5252
util.cache: Let the user select the bare JID or not.
2018-03-31 00:44:53 +02:00
Emmanuel Gil Peyrot
80b7cf6ff8
util.cache: Support None for encode and decode.
2018-03-31 00:44:23 +02:00
Emmanuel Gil Peyrot
128cc2eeb4
XEP-0115: Use the new cache system.
2018-03-31 00:25:28 +02:00
Emmanuel Gil Peyrot
037912ee89
util.cache: New module handling both in-memory and on-file system caching.
2018-03-31 00:24:21 +02:00
Emmanuel Gil Peyrot
769bc6d3bf
session: Also fire the session_start event.
2018-03-14 19:39:01 +01:00
Emmanuel Gil Peyrot
084d6cb5d9
session: Don’t bind if it is optional.
...
See https://tools.ietf.org/html/draft-cridland-xmpp-session-01
2018-03-14 18:54:17 +01:00
Emmanuel Gil Peyrot
5184713356
Rearm an iq callback if it was addressed to ourself.
2018-03-14 17:37:55 +01: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
29faf114a7
Add max-file-size support to HTTP File Upload example.
2018-03-08 12:11:26 +01:00
Emmanuel Gil Peyrot
94ea8151d4
Add an HTTP File Upload example.
2018-03-08 03:39:23 +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
ee98159586
Test all known python versions in travais
2017-12-27 15:49:52 +01:00
Emmanuel Gil Peyrot
c6443af29a
stringprep: Make pure-Python punycode() return bytes.
...
Fixes #3366 .
2017-12-27 15:48:42 +01:00
mathieui
d73f56a7af
Release slixmpp 1.3.0
2017-11-28 20:16:08 +01:00
Emmanuel Gil Peyrot
7c7f4308c5
Add a Markup plugin.
2017-11-23 12:18:01 +00:00
mathieui
eab8c265f4
Record the current connection attempt in a future and allow cancellation
...
It does not make sense to have competing connection attempts, as the
XMLStream class is not designed for this. On slow and unpredictable
networks, it means we could have two c2s connections opened, leading to
mayhem.
2017-11-23 00:00:37 +01:00
Emmanuel Gil Peyrot
80b9cd43b1
MAM example: Also display the timestamp.
2017-10-24 10:54:53 +01:00
Emmanuel Gil Peyrot
af1f9e08ad
Clean up the MAM example a bit.
2017-10-24 10:47:42 +01: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
2d2a80c73d
xmlstream: Remove pygments dumping.
...
It’s slow and makes the debug logs difficult to parse.
2017-07-17 21:17:02 +01:00
Mathias Ertl
4dfdd5d8e3
always define ssl_context
2017-05-24 13:18:22 +02:00
Mathias Ertl
1994ed3025
pass SSL context to TLS connections
2017-05-24 11:31:13 +02:00
Mathias Ertl
aaa45846d3
add function to explicitly get the ssl context
2017-05-24 11:31:13 +02:00
louiz’
d7ffcb54eb
Merge remote-tracking branch 'samwhited/sslsocket_workaround'
2017-05-16 17:24:46 +02:00
Tom Wambold
c33749e57a
Fixes port being set to 0 when connecting via hostname.
...
This seems to be the same issue as:
https://dev.louiz.org/issues/3164
Using their suggested fix, if the DNS lookup doesn't return a port, use
the one passed in instead.
2017-05-08 15:58:28 -04:00
Emmanuel Gil Peyrot
e4107d8b4d
sasl: Merge two bytes instead of concatenating them at runtime.
2017-04-28 21:26:03 +01:00
mathieui
da5cb72d3a
Add XMPP classifier to setup.py
2017-04-10 02:24:14 +02:00
Emmanuel Gil Peyrot
c372bd5168
xmlstream: Warn when the parser is None when data is received.
2017-02-16 11:27:36 +00:00
mathieui
cabf623131
Fix the http over xmpp example
2017-02-14 01:04:38 +01:00
mathieui
ffc240d5b6
Fix the gtalk example
2017-02-14 01:04:27 +01:00
mathieui
cc4522d9cd
Fix custom stanza examples
2017-02-14 01:00:41 +01:00
mathieui
5bf69dca76
Return a Future on clientxmpp.get_roster()
2017-02-14 00:46:36 +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
007c836296
XEP-0300: Add rudimentary tests.
2017-02-11 04:02:44 +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
Cédric 'dek' Laudrel
802949eba8
fix small typo in README
2017-02-10 00:08:40 +01:00
mathieui
24f35e433f
slixmpp 1.2.4 release
2017-01-30 23:02:45 +01: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 acc52fd935.
2017-01-23 23:51:59 -08:00
Emmanuel Gil Peyrot
eb1251b919
Fix a typo in the title of the MUC documentation.
2017-01-08 17:38:11 +00:00
Emmanuel Gil Peyrot
820144c40c
Add missing asyncio.coroutine decorators.
2016-12-30 13:41:15 +01:00
Emmanuel Gil Peyrot
6034df0a78
Check for XML parsing errors and disconnect in that case.
2016-12-29 18:59:09 +01:00
Emmanuel Gil Peyrot
df4012e66d
XMLStream: Break a long line to make it more readable.
2016-12-29 18:41:09 +01:00
Emmanuel Gil Peyrot
c372f3071a
Examples: Use argparse for http_over_xmpp.
2016-12-29 18:34:37 +01:00
Emmanuel Gil Peyrot
829c8b27b6
Test more things before trying to build our stringprep module.
2016-12-25 13:28:51 +01:00
mathieui
fb3ac78bf9
slixmpp 1.2.3
2016-12-07 21:47:54 +01:00
mathieui
ffd9436e5c
Fix roster push origin detection and tests
2016-12-07 19:06:25 +01:00
louiz’
bbb1344d79
Add very basic gitlab-ci.yml file
2016-12-05 00:13:13 +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
mathieui
53191ff1cf
slixmpp 1.2.2
...
Fix CVE-2015-8688, and a few bugfixes.
2016-11-21 21:46:02 +01:00
mathieui
ffdb6ffd69
Check origin of roster pushes
...
slixmpp is vulnerable to roster push attacks as described by Daniel
Gultsch at https://gultsch.de/gajim_roster_push_and_message_interception.html .
(CVE-2015-8688)
2016-11-21 21:42:51 +01:00
Emmanuel Gil Peyrot
7560db856b
stringprep_profiles: Emit a correct StringPrepError on query + unassigned.
2016-10-27 06:44:38 +01:00
Emmanuel Gil Peyrot
63d245ac48
SASL: Fix traceback on non-hashing mechanism using channel binding.
2016-10-27 06:26:39 +01: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
391f12eeab
Transform an if into an elif in cert parsing.
2016-10-23 14:15:02 +01: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
Sam Whited
8b06aa1146
Fix fetching the SSL socket for Python 3.4 and 3.5
2016-10-06 13:00:17 -05:00
Emmanuel Gil Peyrot
3c7236fe73
setup.py: Check for libidn before trying to use Cython.
2016-10-05 20:28:11 +01:00
mathieui
36824379c3
slixmpp 1.2.1
...
Fix a few bugs along with the testsuite, and remove the asyncio loop
monkeypatch hack.
2016-10-05 20:32:32 +02:00
mathieui
a0a37c19ff
Remove monkeypatching hack on the event loop
...
This allowed us to schedule events in-order later in the event loop, but
was detrimental to using other event loops and debugging.
2016-10-05 20:19:07 +02:00
mathieui
1b5fe57a5e
Fix XEP-0060 tests
2016-10-04 21:21:55 +02:00
mathieui
5da31db0c7
Fix stanza accessors case in tests
...
They were using deprecated (and-removed) style.
2016-10-04 21:15:01 +02: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 7cd1cf32ae
2016-10-04 19:47:11 +02:00
mathieui
62aafe0ee7
Attrib property has been removed
2016-10-04 19:43:45 +02:00
mathieui
cf3f36ac52
Set unset part of a JID to empty string instead of None
...
it breaks assumptions on the type of the value
2016-10-04 19:42:05 +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 125336aeee 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
187c350805
Update for slixmpp 1.2
2016-10-02 17:36:14 +02:00
mathieui
96d1c26f90
Add a fallback if the lang we want is not available
...
Previously, trying to get a text node with a lang which is different
from the one we specified would return nothing, which means e.g. a
message would be ignored because its body is of lang 'fr' when we setup
slixmpp to prefer 'en'. We want to return something when there is an
available, valid content in a different language.
2016-10-02 17:12:47 +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
0c63a4bbda
Fix #3226 (unicity of scheduled event names)
...
Thanks tchiroux for raising the issue and providing the fix as well.
2016-09-30 20:59:31 +02:00
mathieui
e4696e0471
Merge branch 'doc_fixes' of https://github.com/SamWhited/slixmpp
2016-09-30 20:53:36 +02:00
Sam Whited
8217dc5239
Minor documentation fixes
2016-09-30 13:49:04 -05:00
mathieui
2586abc0d3
Fix xep-0050 stanza
...
broken in 3a9b45e4f2
2016-09-20 20:51:21 +02:00
Emmanuel Gil Peyrot
28f84ab3d9
ElementBase: Remove support for TitleCase methods.
...
This gains about 1/8th of the time spent in __getitem__.
2016-09-21 01:31:53 +09: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
0edeefd977
BaseXMPP: Stop automatically enabling UserNick, and remove deprecated alias module.
2016-09-20 16:23:02 +09:00
Emmanuel Gil Peyrot
6ba53cf1ff
ElementBase: Remove attrib interface.
2016-09-20 16:23:02 +09:00
Emmanuel Gil Peyrot
d7758eb7f4
ElementBase: Remove subitem interface.
2016-09-20 16:23:02 +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
Emmanuel Gil Peyrot
1e4a301c6e
Replace _format_jid with a JID method updating both bare and full at the same time.
2016-08-26 22:25:58 +01:00
mathieui
f53b12d227
Fix the MUC address in contributing.rst
2016-08-23 23:10:17 +02:00
Dan Sully
e2562dcccf
Make session_bind_event awaitable
2016-08-23 23:05:22 +02:00
louiz’
7b69ae3738
Add a contributing file
2016-08-24 00:33:07 +02:00
Emmanuel Gil Peyrot
ab6df235d7
Pre-compute JID bare and full forms, and store that in each JID.
...
This wins about 4s over a 54s real-world benchmark.
2016-08-22 23:43:16 +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
Emmanuel Gil Peyrot
e28318c271
Micro-optimise _format_jid.
2016-08-21 20:26:51 +01:00
mathieui
39ee833c29
Improve XEP-0070 and examples
2016-08-19 23:48:37 +02:00
Emmanuel Gil Peyrot
9019e2bc71
Initial work on XEP_0070, plugin and examples
2016-08-19 23:48:29 +02:00
louiz’
9208bf5bf1
Merge remote-tracking branch 'zejn/master'
2016-08-19 11:18:27 +02:00
Emmanuel Gil Peyrot
f0f1698e46
ElementBase: micro-optimise __getitem__, hands down the most often called function
...
This makes it go down from 8.767s to 7.960s in a random benchmark.
Remove unnecessary assignations, don’t create an OrderedDict from a
dict to then convert it to a dict again, only obtain the get_method2
name if get_method wasn’t present.
get_method2 (the title-case one) takes about 1/8th of the total time
spent in this function, we should eliminate it as soon as possible.
2016-08-17 00:46:56 +01:00
Gasper Zejn
eccd7f1c98
Provide domain name to loop.create_connection if using SSL.
2016-08-12 15:32:42 +02:00
Emmanuel Gil Peyrot
2587d82af8
Make util.XOR about ten times faster by calling bytes only once.
2016-07-30 00:14:54 +01:00
mathieui
7ea121b115
Don’t swallow presence exceptions abritrarily
2016-06-28 20:58:47 +02:00
mathieui
bb81fbbdfc
Implement XEP-0256 (last activity in presence)
...
mostly useless, but allows to use LastActivity stanzas inside Presence
stanzas as well.
2016-06-05 02:04:52 +02:00
mathieui
1a00a08b7d
Make XEP-0186 return futures as well
...
Improving the api if the developer wants to wait on them.
2016-06-05 00:19:24 +02:00
mathieui
90ea2a3411
Implement XEP-0352 (client state indication)
2016-06-04 22:59:23 +02:00
mathieui
8fc6814b6d
Update XEP-0198 for asyncio
2016-06-04 20:51:59 +02:00
mathieui
ffced0ed9a
Add a xep-0334 plugin
2016-06-04 19:34:12 +02:00
mathieui
e7248d9af9
Fix the Waiter handler for asyncio
2016-05-28 20:53:41 +02:00
mathieui
6b1a04f59d
Fix xep-0199
...
The keepalive ping was not working, and and ping() was tracebacking due
to a wrong parameter.
2016-05-28 15:13:33 +02:00
mathieui
4905407092
Fix the ordering of stream features
...
since iq.send is non-blocking, some features handlers could end up
being executed before others were set, leading to issues. Adding yield
from where it’s necessary fixes that.
2016-05-28 14:46:39 +02:00
louiz’
bd6ec10939
Add some credits
2016-03-15 09:35:36 +01:00
Sam Whited
e15e6735f1
The XEP-0198 plugin exists now; fix the docs
2016-03-14 23:59:01 +01:00
mathieui
67afd6a462
Fix #3166 (broken link)
2016-02-03 22:43:47 +01:00
mathieui
2e2b97c53b
Merge branch 'xep_0012_fix' of https://github.com/misuzu/slixmpp
2016-01-21 23:22:28 +01:00
Tsukasa Hiiragi
a35df7fe1f
Fixed NameError in start_uptime
2016-01-21 14:59:03 +02:00
Krzysztof Kotlenga
fbc8562779
Remove dead code
...
See 5c769632e8 .
2015-12-15 19:44:29 +01:00
mathieui
b549db959a
Update version to 1.1
2015-10-02 19:35:29 +02:00
mathieui
d5188ac68a
Mention the build of cython modules in the README
2015-10-02 19:22:26 +02:00
mathieui
ada9444bf8
Merge branch 'sleek-merge'
2015-10-02 19:07:45 +02:00
mathieui
acc52fd935
Merge branch 'develop' of https://github.com/fritzy/SleekXMPP into sleek-merge
...
Conflicts:
README.rst
examples/IoT_TestDevice.py
examples/disco_browser.py
setup.py
sleekxmpp/jid.py
sleekxmpp/plugins/google/auth/stanza.py
sleekxmpp/plugins/google/gmail/notifications.py
sleekxmpp/plugins/google/nosave/stanza.py
sleekxmpp/plugins/google/settings/settings.py
sleekxmpp/thirdparty/__init__.py
sleekxmpp/thirdparty/socks.py
sleekxmpp/thirdparty/statemachine.py
sleekxmpp/util/__init__.py
sleekxmpp/xmlstream/xmlstream.py
slixmpp/basexmpp.py
slixmpp/plugins/xep_0004/stanza/form.py
slixmpp/plugins/xep_0009/rpc.py
slixmpp/plugins/xep_0050/adhoc.py
slixmpp/plugins/xep_0065/proxy.py
slixmpp/plugins/xep_0084/stanza.py
slixmpp/plugins/xep_0202/time.py
slixmpp/plugins/xep_0323/sensordata.py
slixmpp/plugins/xep_0325/control.py
slixmpp/plugins/xep_0325/stanza/control.py
slixmpp/roster/single.py
slixmpp/stanza/atom.py
slixmpp/stanza/rootstanza.py
slixmpp/test/slixtest.py
slixmpp/util/sasl/mechanisms.py
slixmpp/version.py
slixmpp/xmlstream/stanzabase.py
tests/test_stanza_xep_0323.py
tests/test_stanza_xep_0325.py
tests/test_stream_xep_0323.py
tests/test_stream_xep_0325.py
2015-10-02 19:00:19 +02:00
mathieui
1100ff1feb
Reset the DNS answers after a connection is made succesfully
2015-09-25 19:34:04 +02:00
mathieui
c17fc3a869
Fix IPv6 resolving with aiodns 1.0
2015-09-24 19:38:53 +02:00
mathieui
4dba697075
Fix support for python 3.4 <= 3.4.2
...
asyncio module is provisional, which means it gets updated everytime
2015-09-23 23:23:02 +02:00
mathieui
e42d651d7e
Fix connecting to a custom host/port
2015-09-19 15:27:12 +02:00
Mike Taylor
4305eddb4f
Merge pull request #397 from rerobins/xep_0050_updates
...
Xep 0050 updates
2015-09-18 16:18:41 -04:00
Robert Robinson
c2dc44cfd1
Merge branch 'develop' into xep_0050_updates
...
# Conflicts:
# tests/test_stream_xep_0050.py
2015-09-18 13:35:28 -06:00
Robert Robinson
5fc14de32e
Merge pull request #3 from fritzy/develop
...
Merge to fritzy_master
2015-09-18 13:30:30 -06:00
Mike Taylor
d245558fd5
Merge pull request #396 from rerobins/add_xep_0122
...
XEP_0122: Add support for form validation
2015-09-18 15:15:27 -04:00
Mike Taylor
9d45370e8a
Merge pull request #393 from aalba6675/fix/time
...
Only send time if Iq type is get.
2015-09-18 15:15:01 -04:00
Mike Taylor
cc1cc61d36
Merge pull request #392 from aalba6675/fix/tel_number
...
Do not overwrite telephone numbers
2015-09-18 15:14:35 -04:00
Mike Taylor
c6740a4908
Merge pull request #389 from alexdraga/develop
...
Add get users by affiliation.
2015-09-18 15:13:54 -04:00
Mike Taylor
55114bcffe
Merge pull request #384 from elya5/patch-1
...
Fix UnboundlocalError in disco_browser.py example
2015-09-18 15:13:30 -04:00
Mike Taylor
4fa5dedc47
Merge pull request #386 from jdowner/develop-iot
...
iot: only add the 'done' field when all devices are done
2015-09-18 15:13:07 -04:00
Mike Taylor
5525ef2285
Merge pull request #395 from rerobins/refactor_forms
...
XEP_0004: Data Forms use register_stanza_plugin
2015-09-18 15:11:47 -04:00
Robert Robinson
a7ac969215
register_Stanza_plugin shouldn't be iterable
...
Should not use iterable for registering the stanza plugins.
2015-09-17 16:21:54 -06:00
Robert Robinson
329cb5a9f8
Add 0122 to plugin/__init__.py __all__
2015-09-17 16:21:13 -06:00
Robert Robinson
d9b47b33f5
Update __init__.py
...
changed xep_0121 to xep_0122
2015-09-15 10:20:37 -06:00
Robert Robinson
3582ac9941
Merge branch 'add_xep_0122' of https://github.com/rerobins/SleekXMPP into add_xep_0122
2015-09-15 10:12:50 -06:00
Robert Robinson
2a127a57a7
Add test case Reported->Data Form Validation
...
Add a test case that will verify that reported fields can contain data form validation data.
2015-09-15 10:09:06 -06:00
Robert Robinson
7059400020
Merge branch 'refactor_forms' into add_xep_0122
2015-09-15 10:07:34 -06:00
Robert Robinson
0b14ef82d4
Add test case for reported and items
...
Previous stanza test cases didn't have test cases for reported and item field types in forms. This fixes that issue.
Modified stanzabase to use an ordered dict so that can guarentee the that 'items' in a form are added after reported. Also updated the set of interfaces that are stored in Form to be a ordered set. Used the order set implementation from: https://code.activestate.com/recipes/576694/
The OrderedSet implementation is licensed under the MIT license and is developed by the same developer of the ordereddict.
2015-09-15 10:05:53 -06:00
Robert Robinson
83953af53d
Missing xep_122 dir in setup.py
2015-09-14 20:28:55 -06:00
Robert Robinson
110cf25c6d
Add plugin support
2015-09-14 17:06:07 -06:00
Robert Robinson
f2bf6072ec
Add plugin
...
(cherry picked from commit 2296d56)
2015-09-14 17:04:43 -06:00
Robert Robinson
5f9abe2e0e
Working through test case issues.
...
(cherry picked from commit 6b58cef)
2015-09-14 17:04:16 -06:00
Robert Robinson
ea65b672e7
Initial cut at getting the stanzas to work.
...
(cherry picked from commit 8c7df49)
2015-09-14 17:04:08 -06:00
Robert Robinson
93c705fb31
Fix xep_0050 changes after form refactor.
2015-09-14 17:00:53 -06:00
Robert Robinson
0724f623bb
Force forms and fields to use plugin resolution
...
Instead of using the interface/subinterface code that was currently being implemented for the plugin.
(cherry picked from commit 1467ec7)
2015-09-14 16:46:36 -06:00
mathieui
82e549c0e9
(Temporary) fix for python 3.5
...
This will work until the old ssl implementation is finally deprecated.
Hopefully, new features to painlessy implement starttls will be around
by then.
2015-09-14 23:14:53 +02:00
mathieui
1aa15792b4
Bump the requirements to aiodns 1.0
...
(and use install_requires instead of requires in the setup.py)
2015-09-14 23:14:06 +02:00
Robert Robinson
ffb2b6bc04
Update test_stream_xep_0050.py
...
Fix Unit Test for adhoc 50 stream.
2015-09-12 20:08:21 -06:00
Emmanuel Gil Peyrot
27f98bf22c
xep_0231: Fix a traceback on result serialization.
2015-09-05 18:35:59 +01:00
mathieui
3978078710
vcard-temp: add some checks against wrong input
2015-09-04 01:59:40 +02:00
mathieui
00a0698720
Add timeout_callback to a bunch of plugins as a parameter
2015-09-04 01:05:56 +02:00
Robert Robinson
4a24f58be2
XEP0050: Add support for payload in completed response
...
When sending the command to complete the task, the adhoc plugin does not provide the ability to send a payload from the _handle_command_complete method.
2015-09-03 10:15:41 -06:00
Mike Taylor
da14ce16ec
Merge pull request #394 from sangeeths/misc_updates
...
adding 'id' to self['xep_0332'].send_request()
2015-08-27 13:00:34 -04:00
Sangeeth Saravanaraj
18e5abb9dd
adding 'id' to self['xep_0332'].send_request()
2015-08-27 13:24:01 +05:30
Richard Chan
1a75b76916
Only send time if Iq type is get.
2015-08-25 18:21:58 +08:00
Richard Chan
53b56899a0
Do not overwrite telephone numbers; otherwise all TEL/NUMBER received
...
from a server will be blank.
2015-08-25 18:11:54 +08:00
mathieui
804b23d390
Merge branch 'socks5' of http://git.linkmauve.fr/slixmpp
2015-08-23 17:14:53 +02:00
Emmanuel Gil Peyrot
04eaf52b1d
xep_0065: Remove an unused variable.
2015-08-23 16:06:01 +01:00
Emmanuel Gil Peyrot
dc7fef1064
xep_0065: Remove the last useless threading locks.
2015-08-23 16:06:01 +01:00
Emmanuel Gil Peyrot
488c433555
Add SOCKS5 Bytestream examples.
2015-08-23 16:06:01 +01:00
Emmanuel Gil Peyrot
9c5dd024b1
Fix the xep_0065 plugin, by rewriting its socks5 implementation.
2015-08-23 16:06:01 +01:00
Florent Le Coz
6e61adf3db
Fix the order in which <identity/> and <feature/> tags are sent on disco#info
...
The identities should all be at the start, and features at the end, so we
just prepend the identity on add_identity, and append features on
add_feature
2015-08-22 18:48:29 +02:00
Emmanuel Gil Peyrot
041bd63864
Add a function to convert a domain name to punycode.
2015-08-20 20:04:58 +01:00
Aleksandr Draga
a366482551
Add get users by affiliation.
2015-08-10 15:34:27 +03:00
Emmanuel Gil Peyrot
a721084f6e
Fix the pubsub_client example.
2015-08-08 17:34:06 +02:00
Emmanuel Gil Peyrot
1b4187fa56
Add a format() method to XMPPError which returns a readable string.
2015-08-08 17:34:06 +02:00
Emmanuel Gil Peyrot
cf7a60705e
Fix docstring of unsubscribe method in the PubSub plugin.
2015-08-08 17:34:06 +02:00
Emmanuel Gil Peyrot
349b05b9b7
Stop disco_browser and pubsub_client examples once they are finished.
2015-08-08 17:34:06 +02:00
Emmanuel Gil Peyrot
9fbacf377a
Strip strings after pygments, so we don’t include an needless newline.
2015-08-08 17:34:06 +02:00
mathieui
2da9e35cbc
Add missing files to the MANIFEST
2015-08-08 17:34:06 +02:00
mathieui
8adc8fa2ba
Update README
2015-08-08 17:34:06 +02:00
mathieui
9efa909dfc
slixmpp v1.0
2015-08-08 17:34:06 +02:00
mathieui
7f21fdbe26
Fix the test suite
...
(mock transport class missing .close())
2015-08-08 17:34:06 +02:00
mathieui
f9c7fa92ea
Reset the connect future after a disconnect
2015-08-08 17:34:05 +02:00
Florent Le Coz
e75a160d52
Remove a useless line of code from “your first XMPP bot” example
2015-08-08 17:34:05 +02:00
Emmanuel Gil Peyrot
170bd51387
Properly answer an error instead of tracebacking on unknown command execution.
2015-08-08 17:33:59 +02:00
Mike Taylor
abcec1e2d3
Merge pull request #388 from sangeeths/misc_updates
...
Retaining 'id' in the response and error stanzas
2015-08-01 14:04:22 -04:00
Sangeeth Saravanaraj
eeab646bfa
Retaining 'id' in the response and error stanzas
2015-08-01 17:47:03 +05:30
Mike Taylor
2c69144189
Merge pull request #387 from mcella/378
...
Fixes #378 : must acquire JID_CACHE_LOCK before adding to JID_CACHE
2015-07-31 11:21:01 -04:00
Michele Cella
f54ebec654
Fixes #378 : must acquire JID_CACHE_LOCK before adding to JID_CACHE
2015-07-31 11:55:50 +02:00
mathieui
2ce931cb7a
Add a waiting time before reconnecting automatically
...
Punishing a server for being down by sending more traffic is not a nice
thing to do. Taking 100% of the CPU is not nice either.
2015-07-21 00:58:52 +02:00
mathieui
84eddd2ed2
Fix components
...
(use_tls is useless since slixmpp will always try to use starttls
whenever possible)
2015-07-21 00:33:15 +02:00
Joshua Downer
2042e1a4d5
iot: only add the 'done' field when all devices are done
2015-07-20 17:34:09 -04:00
Robert Robinson
be14f0cc52
XEP_0050: Form not iterable in command
...
Cannot pass in a form into the initial command and have it show up in the payload of the session. Line 344 makes this possible when following the standard workflow.
2015-07-15 20:52:06 -06:00
elya5
edd9199be8
Fix UnboundlocalError in disco_browser.py example
...
If self.get is in self.info_types and self.items_types, only self['xep_0030'].get_info is executed and not self['xep_0030'].get_items. So the condition in line 129 is successful but items is not assigned.
2015-07-09 17:15:36 +02:00
Mike Taylor
bb094cc649
Merge pull request #365 from jdowner/staging
...
Fixed imports
2015-07-05 15:46:04 -04:00
Mike Taylor
dbaa6ed952
Merge pull request #366 from jdowner/develop-iot-cleanup
...
Minor cleanup of IoT plugin
2015-07-05 15:45:47 -04:00
Mike Taylor
8c94d894ab
Merge pull request #369 from stevenroose/patch-2
...
Change to roster migration e
2015-07-05 15:45:19 -04:00
Mike Taylor
ffc7eac4dc
Merge pull request #370 from jdowner/develop-jid
...
Removed duplicate property
2015-07-05 15:44:58 -04:00
Mike Taylor
555fd6d926
Merge pull request #380 from anirudh-chhangani/XEP-0096-add-hash-param
...
add hash metadata for file transfer
2015-07-05 15:44:03 -04:00
Mike Taylor
c024ac8f0b
Merge pull request #382 from sangeeths/initialize_certificate
...
Initialize certfile, keyfile and ca_certs in XMLStream. Added **kwargs to ClientXMPP, BaseXMPP and XMLStream.
2015-07-03 15:07:35 -04:00
Sangeeth Saravanaraj
f00177c0cf
Added **kwargs to ClientXMPP, BaseXMPP and XMLStream so that certfile, keyfile and ca_certs can be initialized.
2015-07-03 10:47:06 +05:30
mathieui
d0ad25745a
Merge branch 'jid' of http://git.linkmauve.fr/slixmpp
2015-06-22 23:56:05 +02:00
Emmanuel Gil Peyrot
55be23a6da
Update the INSTALL file, and add a point about Cython.
2015-06-22 01:16:33 +01:00
Emmanuel Gil Peyrot
75ba283572
Store None instead of '' for unset parts of a JID.
2015-06-22 01:12:56 +01:00
mathieui
f7164d35d2
Add a wrapper to get_info/get_items functions
...
(and fix caps in the process)
2015-06-21 16:23:47 +02:00
Emmanuel Gil Peyrot
4afbb0322b
Rework slixmpp.jid’s JID classes to make them more efficient.
2015-06-20 01:49:48 +01:00
Emmanuel Gil Peyrot
7bce1ecc8a
Add a Cython version of slixmpp.stringprep, using libidn.
...
This makes the validation of a JID a *lot* faster.
2015-06-20 01:14:46 +01:00
Emmanuel Gil Peyrot
bbce16d526
Move stringprep and idna support in a different module than slixmpp.jid.
2015-06-20 01:14:46 +01:00
Emmanuel Gil Peyrot
c29fc39ef1
Remove JID cache, to better test for performance.
2015-06-20 01:12:03 +01:00
Emmanuel Gil Peyrot
8335c08782
Fix test_jid to not use deprecated ways to create JID objects, and add it a few more tests.
2015-06-20 01:12:03 +01:00
Anirudh
224d7ae133
add hash param to file metadata
2015-06-18 00:21:19 +05:30
Emmanuel Gil Peyrot
04bff00171
XEP-0030: return the iq.send() future when sending a disco#info or disco#items.
2015-06-14 15:11:24 +01:00
Emmanuel Gil Peyrot
f3e31baf04
Properly consider malformed IPv6 domains as invalid.
2015-06-12 11:52:48 +01:00
Sangeeth Saravanaraj
9b25a7cf77
Fixed typo.
2015-06-05 12:25:41 +05:30
Joshua Downer
7a908ac07b
Removed duplicate property
2015-05-28 09:35:50 -04:00
Steven Roose
92901637ec
Change to roster migration example
...
I did have the chance to test the script yet, but it seems like that line should be outside the for loop.
2015-05-25 01:01:08 +02:00
Joshua Downer
3590b663ed
xep-0323: removed deadcode
2015-05-14 06:27:59 -04:00
Joshua Downer
a33bde9cc3
xep-0323: spelling
2015-05-14 06:27:39 -04:00
Joshua Downer
ac50fdccfc
xep-0323: unused import
2015-05-14 06:26:54 -04:00
Joshua Downer
a0c6bf15e9
Fixed imports
...
Removed unused modules/packages and added getpass, which was missing.
2015-05-13 17:24:06 -04:00
mathieui
a2852eb249
Allow the use of a custom loop instead of asyncio.get_event_loop()
2015-05-12 00:02:32 +02:00
mathieui
f1e6d6b0a9
Advertize the disco#info feature in our disco#info
...
Actually a MUST in XEP-0030
2015-05-08 13:41:20 +02:00
Emmanuel Gil Peyrot
116a33ba51
Make syntax highlighting for XML lazy, to only call pygments when debug logs are enabled.
...
Makes poezio about 11% faster when sending/receiving messages.
2015-05-06 13:03:47 +02:00
Mike Taylor
a8ac115310
Merge pull request #363 from sangeeths/xep_0332
...
XEP_332: Prefixed request and response with "http"
2015-05-01 12:50:06 -04:00
Sangeeth Saravanaraj
1345b7c1d0
Misc updates for send_error()
2015-05-01 15:34:53 +05:30
Sangeeth Saravanaraj
d60a652259
data need not be prefixed with http..
2015-05-01 14:32:36 +05:30
Sangeeth Saravanaraj
61a7cecb31
Prefixed request, response and data with http. Avoided (plugin_attrib) name collision with other plugins.
2015-04-29 14:44:25 +05:30
Mike Taylor
192b7e0349
Merge pull request #345 from sangeeths/xep_0332
...
XEP-0332: HTTP over XMPP transport
2015-04-28 22:44:27 -04:00
Sangeeth Saravanaraj
80b60fc048
Merge remote-tracking branch 'origin/develop' into xep_0332
2015-04-28 16:53:40 +05:30
mathieui
b8d7b9520c
Fix some disco tests
...
The targeted JID was a bare JID, which is wrong since the XEP specifies
that such disco requests are handled by the server.
2015-04-21 20:10:47 +02:00
mathieui
0305ce66b7
Merge branch 'ibb' of http://linkmauve.fr/git/slixmpp
2015-04-19 20:53:35 +02:00
Emmanuel Gil Peyrot
474405ab90
XEP-0047: fix examples.
2015-04-19 20:48:02 +02:00
Emmanuel Gil Peyrot
4415d3be1a
XEP-0047: use coroutines for send(), sendall() and the new sendfile().
2015-04-19 20:48:02 +02:00
Emmanuel Gil Peyrot
058c530787
XEP-0047: prevent any unneededly large or useless bytes slice.
2015-04-19 20:48:01 +02:00
Emmanuel Gil Peyrot
766d0dfd40
XEP-0047: use asyncio’s Queue implementation, to prevent any possibility of deadlock.
2015-04-19 20:48:01 +02:00
Emmanuel Gil Peyrot
ac31913a65
XEP-0047: make open_stream() return a future that will be set to the stream object.
2015-04-14 19:14:56 +02:00
Emmanuel Gil Peyrot
d34ddf33db
XEP-0047: replace threading events with simple booleans.
2015-04-14 19:14:56 +02:00
Emmanuel Gil Peyrot
eb4e09b0ca
XEP-0047: allow only one window over the stream.
2015-04-14 19:14:56 +02:00
Emmanuel Gil Peyrot
ce085bf4f4
XEP-0047: announce the correct stanza type if message is selected.
2015-04-14 19:14:56 +02:00
Emmanuel Gil Peyrot
990113f8e7
XEP-0047: return the correct error type on not-acceptable (example 5).
2015-04-14 19:14:56 +02:00
Emmanuel Gil Peyrot
aa022204ee
XEP-0047: don’t answer with an unauthorized error when block-size is too big.
2015-04-14 19:14:56 +02:00
Emmanuel Gil Peyrot
c1f23b566b
XEP-0047: remove now-useless threading locks.
2015-04-14 19:14:56 +02:00
Emmanuel Gil Peyrot
45f7cb8bda
XEP-0047: prevent tracebacks in stanza reading.
2015-04-14 19:14:56 +02:00
mathieui
bdb1f66ac9
basexmpp: Add a message_error event
...
The "message" event only receives messages with a body, and error
messages don’t necessarily have it. Removing the body requirement from
the "message" event could lean to unhandled conditions in existing code.
2015-04-13 15:08:04 +02:00
Mike Taylor
842157a6cc
Merge pull request #187 from ekini/xep_0138
...
added xep-0138 support (compression)
2015-04-11 20:58:45 -04:00
Mike Taylor
a63cc01482
Merge pull request #316 from rakoo/develop
...
Extend AtomEntry capabilities
2015-04-11 20:53:44 -04:00
bear (Mike Taylor)
1bbb6f3ff9
Merge branch 'hildjj-develop' into develop
2015-04-11 20:43:56 -04:00
bear (Mike Taylor)
93894247a4
Merge branch 'develop' of https://github.com/hildjj/SleekXMPP into hildjj-develop
2015-04-11 20:42:33 -04:00
Mike Taylor
16bb5e2537
bump to version v1.4
2015-04-11 20:38:11 -04:00
Mike Taylor
d19a6e05b2
remove python v3.1 - v3.3 from tox.ini
2015-04-11 20:37:05 -04:00
Mike Taylor
86e85f9835
Merge pull request #313 from mayflower/develop
...
Proposing #310 again in fixed version
2015-04-11 20:12:19 -04:00
Mike Taylor
cc145d20b0
Merge pull request #297 from keith-gray-powereng/develop
...
Fixed a unicode error in xep_0065 on Python 3
2015-04-11 19:49:43 -04:00
Mike Taylor
881d9040c4
Merge pull request #329 from FlySnake/send_queue_overflow
...
In queues added option to remove first element on addind new if queue is full
2015-04-11 19:46:26 -04:00
Mike Taylor
1e77ea0944
Merge pull request #328 from FlySnake/develop
...
On initial connect use delay if connection failed
2015-04-11 19:20:39 -04:00
Mike Taylor
140f0885b2
Merge pull request #331 from mathieui/develop
...
Fix the element name for retrieving certs in XEP-0257
2015-04-11 19:15:26 -04:00
Mike Taylor
83f71a6610
Merge pull request #348 from gribouille-dev/tor_fixes
...
Makes XEP-0009 compatible with Python 2 & 3.
2015-04-11 18:32:42 -04:00
Mike Taylor
271343a32d
Merge pull request #349 from mulog1990/ssl-version-fix
...
ssl-version not passed to wrap_socket, fixed
2015-04-11 18:26:05 -04:00
Mike Taylor
48857b0030
Merge pull request #354 from erigones/develop
...
Fixed bug #353 Python3 XEP-0084 error
2015-04-11 18:12:40 -04:00
Mike Taylor
1fe7f5f4e6
Create .travis.yml
2015-04-11 17:45:23 -04:00
Emmanuel Gil Peyrot
d5b1904ebb
Use a full JID for testing.
2015-04-04 16:56:26 +02:00
Emmanuel Gil Peyrot
b6b0e82dec
Iq.send: set the timeout even when no timeout_callback is set
2015-04-04 16:48:30 +02:00
Emmanuel Gil Peyrot
632b7b4afe
XMLStream: add a forever parameter to process(), defaulting to True, to select whether we want to stop the event loop after a disconnection
2015-04-04 16:48:30 +02:00
Richard Kellner
81b7b2c190
Fixed bug #353 Python3 XEP-0084 error
2015-03-25 14:04:46 +01:00
mulog1990
460de7d301
ssl-version not passed to wrap_socket, fixed
2015-03-10 18:13:53 +08:00
Cédric Souchon
69022c6db7
Makes XEP-0009 compatible with Python 3 while maintaining compatibility with Python 2.6 and up.
2015-03-09 12:33:18 +01:00
Emmanuel Gil Peyrot
0ef3fa2703
XMLStream: factorize the highlight function so it can be used in tests as well
2015-03-02 17:10:27 +01:00
mathieui
8da269de88
Set XMLStream.socket after the SSL connection is made too
...
Fixes SCRAM-SHA-1-PLUS.
2015-02-28 20:32:33 +01:00
mathieui
93ce318259
XEP-0325: Don’t use threading
2015-02-28 19:05:22 +01:00
mathieui
997928de91
Revert or edit most previous XEP plugin changes
...
In a single commit, because it isn’t that interesting to detail each
change.
List of reverts:
Revert "XEP-0030: allow get_info and get_items to return a coroutine"
This reverts commit 506ca69917 .
Revert "XEP-0060: wrap all iq-sending functions with coroutine_wrapper"
This reverts commit e85fa4203e .
Revert "XEP-0163: wrap publish() with coroutine_wrapper"
This reverts commit 69da1c1d7c .
Revert "XEP-0084: wrap functions with coroutine_wrapper"
This reverts commit ea5615f236 .
Partially revert 3d243f7 (XEP-0054) - continue wrapping functions but with future_wrapper
Partially revert 115fe95 (xep-0153) - use callbacks rather than coroutine callbacks, and propagate iqtimeouts in set_avatar.
Revert "XEP-0049: wrap functions with coroutine_wrapper"
This reverts commit e68135f59f .
Revert "XEP-0077: wrap functions with coroutine_wrapper"
This reverts commit 1e4944d47e .
Partially revert cd7ff685 (XEP-0199) - remove the iq.send wrapping but keep ping() as a coroutine
Revert "XEP-0257: wrap functions with coroutine_wrapper"
This reverts commit 4da870fd19 .
Revert "XEP-0092: wrap get_version() with coroutine_wrapper"
This reverts commit 6e35948276 .
Revert "XEP-0191: wrap functions with coroutine_wrapper"
This reverts commit 6e8235544c .
Revert "XEP-0280: wrap functions with coroutine_wrapper"
This reverts commit f795ac02e3 .
Revert "XEP-0012: wrap get_last_activity() with coroutine_wrapper"
This reverts commit 2ee05d9616 .
Revert "XEP-0202: wrap get_entity_time() with coroutine_wrapper"
This reverts commit 6fb3ecd414 .
Revert "XEP-0231: wrap get_bob() with coroutine_wrapper"
This reverts commit 17464b10a4 .
Revert "XEP-0258: wrap get_catalog() with coroutine_wrapper"
This reverts commit 18a4978456 .
Revert "XEP-0050: wrap send_command() and get_commands() with coroutine_wrapper"
This reverts commit e034b31d6b .
Revert "XEP-0279: wrap check_ip() with coroutine_wrapper"
This reverts commit e112e86475 .
2015-02-28 19:02:49 +01:00
mathieui
83d00a5913
Fix examples relying on the changed API
2015-02-28 19:02:44 +01:00
mathieui
bf5d7c83af
Change the API to make iq.send() always return a future
...
remove coroutine_wrapper, add a future_wrapper (which is only needed
when the result stanza can be cached).
Update the documentation as well.
2015-02-28 19:02:35 +01:00
mathieui
c66a4d4097
Update the documentation and examples
...
- update most of the examples with slixmpp
- change the help channels pointed out in the doc
- add a page listing differences from slixmpp and how to use asyncio
nicely with slixmpp
- fix some in-code rst documentation
2015-02-24 22:47:15 +01:00
mathieui
e112e86475
XEP-0279: wrap check_ip() with coroutine_wrapper
2015-02-24 22:46:08 +01:00
mathieui
e034b31d6b
XEP-0050: wrap send_command() and get_commands() with coroutine_wrapper
...
(if flow=True in send_command, the result will still be using the
default callbacks and the function will return None)
2015-02-24 22:46:07 +01:00
mathieui
18a4978456
XEP-0258: wrap get_catalog() with coroutine_wrapper
2015-02-24 22:46:07 +01:00
mathieui
17464b10a4
XEP-0231: wrap get_bob() with coroutine_wrapper
2015-02-24 22:46:07 +01:00
mathieui
6fb3ecd414
XEP-0202: wrap get_entity_time() with coroutine_wrapper
2015-02-24 22:46:07 +01:00
mathieui
c214e4f037
XEP-0084: fix setting and getting the Data value
...
get_value: return a bytes object
set_value: accept a bytes or a str object
2015-02-24 22:46:06 +01:00
mathieui
2ee05d9616
XEP-0012: wrap get_last_activity() with coroutine_wrapper
2015-02-24 22:46:06 +01:00
mathieui
f795ac02e3
XEP-0280: wrap functions with coroutine_wrapper
2015-02-24 22:46:06 +01:00
mathieui
6e8235544c
XEP-0191: wrap functions with coroutine_wrapper
2015-02-24 22:46:06 +01:00
mathieui
6e35948276
XEP-0092: wrap get_version() with coroutine_wrapper
2015-02-24 22:46:05 +01:00
mathieui
4da870fd19
XEP-0257: wrap functions with coroutine_wrapper
2015-02-24 22:46:05 +01:00
mathieui
cd7ff685fb
XEP-0199: wrap functions with coroutine_wrapper and make ping() a coroutine
2015-02-24 22:46:05 +01:00
mathieui
1e4944d47e
XEP-0077: wrap functions with coroutine_wrapper
2015-02-24 22:46:05 +01:00
mathieui
e68135f59f
XEP-0049: wrap functions with coroutine_wrapper
2015-02-24 22:46:04 +01:00
mathieui
6408c5a747
XEP-0115: fix a handler which expected an iq to block
2015-02-24 22:46:04 +01:00
mathieui
115fe954ac
XEP-0153: wrap functions with coroutine_wrapper
2015-02-24 22:46:04 +01:00
mathieui
3d243f7da5
XEP-0054: wrap functions with coroutine_wrapper
2015-02-24 22:46:04 +01:00
mathieui
ea5615f236
XEP-0084: wrap functions with coroutine_wrapper
2015-02-24 22:46:04 +01:00
mathieui
69da1c1d7c
XEP-0163: wrap publish() with coroutine_wrapper
2015-02-24 22:46:03 +01:00
mathieui
e85fa4203e
XEP-0060: wrap all iq-sending functions with coroutine_wrapper
2015-02-24 22:46:03 +01:00
mathieui
506ca69917
XEP-0030: allow get_info and get_items to return a coroutine
2015-02-24 22:46:03 +01:00
mathieui
8ac0ecdf40
Fix dns resolution without aiodns
...
(use loop.getaddrinfo instead of the blocking version)
2015-02-24 19:17:45 +01:00
mathieui
dbd8115557
Remove the filesocket shim (2.6 compatibility)
2015-02-24 19:08:12 +01:00
mathieui
74b4ea20bf
Add back stanza-specific exception handlers
...
(fixes the test suite too)
2015-02-23 17:43:35 +01:00
mathieui
11fbaa4241
Import xmlstream.asyncio and coroutine_wrapper at the top level
...
Since they will be used quite a lot in plugins.
2015-02-23 17:32:39 +01:00
mathieui
8fd0d7c993
Add a coroutine_wrapper decorator
...
This decorator checks for the coroutine=True keyword arg and wraps the
result of the function call in a coroutine if it isn’t.
This allows to have constructs like:
@coroutine_wrapper
def toto(xmpp, *, coroutine=False):
if xmpp.cached:
return xmpp.cached
else:
return xmpp.make_iq_get().send(coroutine=coroutine)
@asyncio.coroutine
def main(xmpp):
result = yield from toto(xmpp, coroutine=True)
xmpp.cached = result
result2 = yield from toto(xmpp, coroutine=True)
If the wrapper wasn’t there, the second fetch would fail. This decorator
does not do anything if the coroutine argument is False.
2015-02-23 17:32:31 +01:00
mathieui
1450d36377
Add a coroutine parameter to iq.send() to return a coroutine
...
(instead of exposing a different send_coroutine method)
2015-02-23 17:20:47 +01:00
mathieui
06358d0665
Use CallbackCoroutine with Iq callbacks too
2015-02-22 20:13:48 +01:00
mathieui
2b3b86e281
Allow event handlers to be coroutine functions
...
And do not copy data when running events with XMLStream.event()
2015-02-22 14:17:17 +01:00
mathieui
92e4bc752a
Add a “blocking” send_coroutine method to the Iq class
2015-02-21 23:45:30 +01:00
mathieui
ffb2e05f21
Check that ciphers have been initialized
...
(if not, python will use the system default)
2015-02-17 04:27:03 +01:00
mathieui
1e2665df19
Update the test suite.
...
- monkey-patch our own monkey-patched idle_call to run events immediatly
rather than adding them to the event queue, and add a fake transport
with a fake socket.
- remove the test file related to xep_0059 as it relies on blocking
behavior, and comment out one xep_0030 test uses xep_0059
- remove many instances of threading and sleep()s because they do
nothing except waste time and introduce race conditions.
- keep exactly two sleep() in IoT xeps because they rely on timeouts
2015-02-12 12:23:47 +01:00
mathieui
4d063e287e
Remove more threaded= and block= options from the plugins
...
(also, correct a typo)
2015-02-12 12:21:20 +01:00
mathieui
44f02fb3ab
Do the plugins post_init() upload loading
...
(the top_level boolean used to load them at this point wasn’t ever set
to true)
2015-02-12 12:18:32 +01:00
mathieui
f6b3a0c6cf
Fix the uses of stanza.reply()
...
This is relying on the stanzas being copied for each handler. We no
longer do that for performance reasons, so instead of editing the copy
in-place, stanza.reply() now returns a new stanza.
2015-02-12 12:17:01 +01:00
mathieui
8b36e918e8
Fix the componentxmpp interface
2015-02-12 12:11:50 +01:00
Sangeeth Saravanaraj
9044807121
Added help for running example..
2015-02-05 18:11:41 +05:30
Sangeeth Saravanaraj
24264d3a07
Updated Example..
2015-02-05 18:10:10 +05:30
Sangeeth Saravanaraj
8bc70264ef
misc updates..
2015-02-05 17:35:04 +05:30
Florent Le Coz
957c635fb7
XMLStream must provide the BaseProtocol interface
2015-02-04 17:49:30 +01:00
mathieui
4027927c6e
Don’t set the msg['from'] and msg['id'] in receipt.ack()
...
setting msg['id'] is wrong, and setting msg['from'] might lead to
echoing back wrong input.
2015-02-04 16:49:39 +01:00
Sangeeth Saravanaraj
c16b862200
Raise http_request and http_response events.
2015-02-03 12:33:25 +05:30
Sangeeth Saravanaraj
a96f608469
Composing request and response.
2015-01-29 08:33:40 +05:30
Sangeeth Saravanaraj
e1f25604ec
Added callbacks, registered stanzas, added features, etc.
2015-01-28 14:52:15 +05:30
Sangeeth Saravanaraj
0fe057b5c3
Boilerplate for Stanzas - request and response
2015-01-27 15:13:57 +05:30
Sangeeth Saravanaraj
be76dda21d
Added xep_0332 to setup
2015-01-23 10:29:21 +05:30
Sangeeth Saravanaraj
ecd124dd06
Boilerplate for xep_0332
2015-01-22 16:40:03 +05:30
Sangeeth Saravanaraj
4a8951c4ee
added xep_0332 to plugins
2015-01-22 16:39:27 +05:30
Sangeeth Saravanaraj
8afba7de85
renamed example for convenience.
2015-01-22 16:38:16 +05:30
Sangeeth Saravanaraj
1ce42d3a2f
Boilerplate example.
2015-01-22 11:30:38 +05:30
Sangeeth Saravanaraj
2f4d811db4
Fixed a typo in docs/guide_xep_0030.rst
2015-01-22 11:13:03 +05:30
Sangeeth Saravanaraj
61127f521d
Added PyCharm's .idea folder to .gitignore
2015-01-22 11:09:47 +05:30
mathieui
62eefdbd6a
Expose MUC support in disco#info
...
http://xmpp.org/extensions/xep-0045.html#disco-client
2015-01-15 22:50:49 +01:00
Florent Le Coz
225e07eb64
Fix the call of iscoroutinefunction()
2015-01-05 11:36:24 +01:00
Florent Le Coz
1207c81ab5
Do not copy the stanza before calling each handler
2015-01-03 18:42:57 +01:00
Florent Le Coz
565da65ccd
Use a deque for the idle list
2015-01-03 16:13:39 +01:00
Florent Le Coz
47fbd4cead
Delay the handling of stanza for when the process is not busy
...
We use some dirty monkey-patching to add a idle_call() function to the
asyncio module. We then use that method to handle each received stanza only
when the event loop is not busy with some other IO (mainly, the standard
input)
2015-01-03 06:08:03 +01:00
mathieui
1b9b4199e8
Make the ca_certs option useful again (CA-based cert validation)
...
It was broken since the fork.
2014-12-17 19:03:49 +01:00
mathieui
b5930ca958
Bring back authentication through SASL EXTERNAL
...
(and only update the ssl context before it gets used)
2014-12-11 19:27:13 +01:00
mathieui
063e73c0d2
Fix the element name for retrieving certs in XEP-0257
...
And s/258/257/ in the XEP description
2014-12-11 18:32:50 +01:00
mathieui
423974f90d
Fix xep-0257 for slixmpp, and fix an element name
2014-12-11 14:46:52 +01:00
Oleg Antonyan
d261318e1a
In queues added option to remove first element on addind new if queue is
...
full
2014-11-27 07:11:06 +02:00
Oleg Antonyan
d33cc00fe9
On initial connect use delay if connection failed
2014-11-23 16:46:01 +02:00
Florent Le Coz
5fcf08a415
Lower the timeout for each DNS resolution attempt
2014-11-14 01:13:52 +01:00
mathieui
3c06568ed5
Let loop.create_connection do its getaddrinfo coroutine if there are no dns records left/available
2014-11-12 22:22:20 +01:00
Lance Stout
27582f6fd2
Merge pull request #326 from s-m-b/patch-1
...
Typo fix of parameter name 'data' it is now 'iq'
2014-11-10 09:07:32 -08:00
s-m-b
e328ff4833
Typo fix of parameter name 'data' it is now 'iq'
...
Code was broken during refactoring
2014-11-09 04:36:38 +03:00
Florent Le Coz
68e35e631a
Also work without SRV records
2014-11-05 01:11:44 +01:00
mathieui
ad8c76602b
Depend on aiodns and not dnspython in the setup.py
2014-11-03 16:55:43 +01:00
Florent Le Coz
b5c98ba99e
Fix default value of dns_answers to None (instead of [])
2014-11-02 17:44:41 +01:00
mathieui
711f8dc6af
Use aiodns instead of dnspython to query DNS records
2014-11-02 17:26:29 +01:00
mathieui
5b41fb98de
Add the ssl_cert and ssl_invalid_chain back
...
- hack the stdlib to get the peercert, remove that hack when http://bugs.python.org/issue22768 gets fixed
2014-10-30 19:51:30 +01:00
mathieui
6da625dbdb
Make the "ciphers" option work again
2014-10-30 19:51:00 +01:00
mathieui
e862c47b8b
Remove the ssl_version option, as the defaults in python3.4 are sane
2014-10-30 19:49:26 +01:00
Florent Le Coz
4a8fe56470
Something something get_stanza_values
...
Fix something that was broken by Link Mauve
2014-10-11 21:04:28 +02:00
Emmanuel Gil Peyrot
7c3e61950d
Remove all deprecated alias in the core of slixmpp, and wherever they were used.
2014-09-28 23:58:46 +02:00
Emmanuel Gil Peyrot
61f89eef2e
Remove the now useless Queue wrapper in slixmpp.util.
2014-09-28 23:58:46 +02:00
Emmanuel Gil Peyrot
06de587ed2
Don’t check for logging.NullHandler, it got added in Python 3.1.
2014-09-28 23:58:46 +02:00
Emmanuel Gil Peyrot
49beb3ac08
Don’t set the wait time to True instead of leaving its float default, in examples.
2014-09-28 23:58:46 +02:00
Lance Stout
403462fdb8
Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop
2014-09-09 08:50:24 -07:00
Lance Stout
f22d8e67b4
Preserve ID for error responses
...
Fixes #319
2014-09-09 08:49:37 -07:00
Emmanuel Gil Peyrot
e1c944d723
Improve run_tests.py, allowing it to run only specific tests.
2014-09-01 02:47:15 +02:00
Emmanuel Gil Peyrot
83442b9849
Remove useless ez_setup.py file, we use setuptools in the normal setup.py instead.
2014-09-01 02:47:15 +02:00
Emmanuel Gil Peyrot
edd6ffeb01
Clean setup.py, using modern 3.4 features.
2014-09-01 02:47:15 +02:00
Emmanuel Gil Peyrot
5a8881000c
Remove support for gevent, incompatible with python3.
2014-09-01 02:47:15 +02:00
Emmanuel Gil Peyrot
70839368c1
Fix indentation in xep_0016.
2014-09-01 02:47:15 +02:00
Emmanuel Gil Peyrot
9d8a2a1a7a
Remove all trailing semicolons.
2014-09-01 02:47:15 +02:00
Emmanuel Gil Peyrot
17174016ec
Remove all trailing whitespaces.
2014-09-01 02:47:15 +02:00
Emmanuel Gil Peyrot
ed37174a2b
Always use OrderedDict from collections, and remove its implementation in slixmpp.thirdparty.
2014-09-01 02:47:15 +02:00
Emmanuel Gil Peyrot
8660148960
Move examples from the deprecated optparse to argparse, and remove the redundant -v option.
2014-09-01 02:47:15 +02:00
Emmanuel Gil Peyrot
67ca2dd0f4
Import getpass from getpass, instead of using getpass.getpass everytime.
2014-09-01 02:47:15 +02:00
Emmanuel Gil Peyrot
882f984b26
Remove (usually) useless comments in examples about OpenFire and how to verify a certificate.
2014-09-01 02:47:15 +02:00
Emmanuel Gil Peyrot
6175cbcd99
Reintroduce XMLStream.process, making it run the asyncio event loop.
2014-09-01 02:47:08 +02:00
Emmanuel Gil Peyrot
476d76a533
Remove threaded from examples’ add_event_handler.
2014-09-01 02:42:45 +02:00
Emmanuel Gil Peyrot
df68bb4896
Remove raw_input usage and other python2 support in examples
2014-09-01 02:42:45 +02:00
Emmanuel Gil Peyrot
815e647c97
Set the shebang to python3 everywhere.
2014-09-01 02:42:45 +02:00
Emmanuel Gil Peyrot
ad70ffba59
Add pygments support to debug output.
2014-09-01 02:42:45 +02:00
Emmanuel Gil Peyrot
0e95015410
Remove sys.version_info checks for python2 and clean some imports.
2014-09-01 02:42:45 +02:00
Matthieu Rakotojaona
35f33f1614
Extend AtomEntry capabilities
2014-08-30 17:23:27 +02:00
Lance Stout
c9f8ddff65
Merge pull request #315 from louiz/develop
...
Fix saslprep on the username
2014-08-24 16:19:15 -07:00
Florent Le Coz
f5ae98aaf1
Fix saslprep on the username
...
Two issues fixed here:
- ints are not comparable with bytes, so char was never == to b',', which
renders the whole function pointless
- The bytes were converted back to “characters” by using chr(), which
doesn’t make sense if the username contains characters that fit on more
than one bytes. This would trigger an “invalid username” error from the
server when using a non-ascii JID.
2014-08-25 01:08:13 +02:00
Florent Le Coz
b92dac72f3
Fix saslprep for non-ascii usernames
2014-08-25 00:59:23 +02:00
Robin Gloster
073e85381a
fix args, kwargs which were broken with #310 . this is essentially the same but working
2014-08-23 14:25:35 +02:00
Robin Gloster
afc939708f
cleanup semicolons, whitespace and mutable default arguments
2014-08-23 12:47:29 +02:00
Lance Stout
aabec8b993
Fix some more Unicode in **kwargs issues in Py2.6
2014-08-21 10:05:42 -07:00
Lance Stout
e5e2fbb16b
Merge pull request #311 from Mayflower/develop
...
Revert "cleanup semicolons, whitespace and mutable default arguments"
2014-08-18 13:34:15 -07:00
Robin Gloster
3dd379cdf1
Revert "cleanup semicolons, whitespace and mutable default arguments"
...
This reverts commit 7265682a4d .
2014-08-18 15:15:14 +02:00
Lance Stout
a20582aba4
Merge pull request #309 from Mayflower/whitespace_keepalive
...
only schedule whitespace keepalive if enabled
2014-08-17 17:21:25 -07:00
Lance Stout
09cdbf1b76
Merge pull request #308 from Mayflower/develop
...
Serialize JID to allow json serializing
2014-08-17 17:20:45 -07:00
Lance Stout
ca306e7cec
Merge pull request #310 from Mayflower/cleanup
...
Cleanup
2014-08-17 17:20:26 -07:00
Robin Gloster
1bf34f7fe6
fix mutable default arguments 💥
2014-08-18 00:55:10 +02:00
Robin Gloster
4144d60017
cleanup semicolons, whitespace and mutable default arguments
2014-08-18 00:55:10 +02:00
Robin Gloster
7265682a4d
cleanup semicolons, whitespace and mutable default arguments
2014-08-18 00:52:24 +02:00
Robin Gloster
08c62a6bf1
fix mutable default arguments 💥
2014-08-18 00:18:10 +02:00
Robin Gloster
d61f1cd035
only schedule whitespace keepalive if enabled
2014-08-17 23:38:07 +02:00
Robin Gloster
1063feb33b
only schedule whitespace keepalive if enabled
2014-08-17 23:37:19 +02:00
Robin Gloster
79f3c1ac8f
serialize JID to allow json serializing
2014-08-17 23:13:56 +02:00
Florent Le Coz
cdb9a6ff7e
Remove deprecated xmlstream/jid.py
2014-08-16 11:27:18 +02:00
Vincent Canfield
a59148dfeb
Remove google modules from setup.py file
2014-08-15 20:27:31 -07:00
Lance Stout
a5c03b763a
Merge pull request #305 from trinque/develop
...
Added wait param to XEP_0009 RemoteSession.close
2014-08-11 14:08:56 -07:00
Michael Trinque
3670d82f1c
Added wait param to XEP_0009 RemoteSession.close
...
This parameter is False by default to preserve existing behavior.
2014-08-10 16:02:10 -07:00
Florent Le Coz
07e46837d9
Fix some more blocking iq
2014-08-01 15:02:54 +02:00
Florent Le Coz
fa21e262c7
Add the 'connecting' event
2014-08-01 04:01:31 +02:00
Florent Le Coz
93934c7992
Improve the events triggered on failed authentication
...
Trigger failed_auth as before, once for each failed method
Trigger failed_all_auth once all method failed
Trigger no_auth only if we couldn’t even try one method
2014-08-01 03:16:22 +02:00
Florent Le Coz
73edd42774
Fix the connection (and a few minor things) in xmlstream
2014-07-30 17:57:57 +02:00
Florent Le Coz
ab03ad54aa
Fix the iq.send() function, and a bunch of places where it is called
...
This is a big-and-dirty commit with a bunch of cleanup, maybe breaking a few
things, and not fixing all iq.send() calls yet.
2014-07-30 17:52:59 +02:00
Florent Le Coz
2e571ac950
Remove all the google stuf
2014-07-24 01:57:20 +02:00
Florent Le Coz
6c15d65107
And that
2014-07-23 17:40:08 +02:00
Florent Le Coz
e5af0597a6
Forgot to remove that
2014-07-23 17:17:41 +02:00
Florent Le Coz
74117453b5
Cleanup how events are run, they are always direct by definition now
2014-07-23 17:01:17 +02:00
Emmanuel Gil Peyrot
5611b30022
Use ".remove()" instead of "is in" followed by ".pop()"
2014-07-22 11:16:06 +02:00
Florent Le Coz
ede9dcd18f
An other cleanup of xmlstream.py
...
Remove some useless things (like handling signals, managing the threads,
etc), add some comment to recently added/fixed methods…
2014-07-22 02:58:34 +02:00
Florent Le Coz
d3b56a5d94
Remove unused RestartStream exception
2014-07-22 02:18:48 +02:00
Florent Le Coz
f5d4334963
Remove the now useless state machine
2014-07-21 20:40:45 +02:00
Florent Le Coz
5c769632e8
Make connect(), abort() and reconnect() work
...
All the auto_reconnect, connect_retry logic and that kind of stuf has been
entirely removed.
2014-07-21 20:34:20 +02:00
Florent Le Coz
373505f483
Clean a new bunch of stuf
2014-07-21 20:32:09 +02:00
Florent Le Coz
a2cad40f91
Remove the send_thread() function, and the stop threading.event
2014-07-21 17:50:56 +02:00
Florent Le Coz
4328762076
Fix signature of init_plugins() function
2014-07-21 17:50:29 +02:00
Florent Le Coz
c2f6f07776
Make xmlstream use an asyncio loop
...
Scheduled events, connection, TLS handshake (with STARTTLS), read and write
on the socket are all done using only asyncio.
A lot of threads, and thread-related (and thus useless) things still remain.
This is only a first step.
2014-07-20 20:46:03 +02:00
Florent Le Coz
5ab77c7452
Rename to slixmpp
2014-07-17 14:19:04 +02:00
Keith Gray
e94a73553d
New version of the socks library socksipy from https://code.googlle.com/p/socksipy-branch/
2014-06-15 19:01:19 -05:00
Keith Gray
577fd71472
Fixed a unicode error in xep_0065 on Python 3
2014-06-15 18:40:58 -05:00
Lance Stout
e5582694c0
Bump to 1.3.1
2014-06-09 08:30:31 -07:00
Lance Stout
768136e493
Fix things again, this time for python3
2014-06-09 08:29:48 -07:00
Lance Stout
753cb3580e
Bump to 1.3.0
2014-06-08 20:01:07 -07:00
Lance Stout
60b050b82a
Make ssl args work in Python <=2.6.4
2014-06-08 19:59:40 -07:00
Lance Stout
ad91a8cd5e
Bring back use of dnspython for A/AAAA resolution.
...
This is behind a use_dnspython flag, however, so it can be disabled as
desired.
2014-06-08 19:51:57 -07:00
Lance Stout
02f79fc94b
Only request auto-receipts for messages with bodies
2014-06-07 20:20:42 -07:00
Lance Stout
230a73fad2
Fix own_host in ping plugin
2014-06-07 20:06:17 -07:00
Lance Stout
d94dd486fe
Merge pull request #294 from mofrank/develop
...
Fixes log.debug message in _connect_proxy
2014-05-16 08:43:39 -07:00
Lance Stout
6ecc39b816
Merge pull request #292 from 4gra/develop
...
Fix support for jabberd2 with GSSAPI
2014-05-16 08:43:26 -07:00
mofrank
9c240df9db
Fixes log.debug message in _connect_proxy
2014-05-16 08:49:01 -05:00
Graham
a918bf3a95
Support jabberd2 SASL with really empty response
...
Despite http://xmpp.org/rfcs/rfc3920.html#rfc.section.6.2 , jabberd version 2.2.14 cannot accept the typical "<response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">=</response>". Instead it must be truly empty, so we force an empty response for this stanza only.
2014-05-14 22:32:51 +01:00
Graham
9434ae267f
support 'success' phase correctly
...
When the GSSAPI mechanism's process() function is invoked for the third time (on success) it must not attempt further processing. Instead it should clean the context and return an empty response.
2014-05-14 22:25:09 +01:00
Graham
94187d215a
don't use the kerberos.GSSError.message attribute
...
Replaced the reference to kerberos.GSSError.message in any raised exception, because:
DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
and its natural repr is probably the most desirable output.
2014-05-14 17:47:34 +01:00
Lance Stout
ef2f5d2978
Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop
2014-04-20 18:10:22 -07:00
Lance Stout
62671e0f56
Fix using SCRAM with ejabberd
2014-04-20 18:09:20 -07:00
Lance Stout
93869f77a0
Merge pull request #285 from lovesnow/develop
...
Fix Don't process vCard avatars for MUC occupants caused TypeError
2014-04-20 18:06:04 -07:00
Lance Stout
8282d135cc
Bump version
2014-04-20 18:05:27 -07:00
Lance Stout
9acc78c81d
Merge pull request #288 from tpltnt/develop
...
doc typo fixed
2014-04-20 17:56:56 -07:00
tpltnt
3642469630
doc typo fixed
2014-04-19 19:12:09 +02:00
lovesnow
34cd20339c
Fix Don't process vCard avatars for MUC occupants caused TypeError
2014-02-21 10:31:04 +08:00
Lance Stout
7548f44047
Bump version
2014-02-14 13:53:25 -08:00
Lance Stout
7cf55ef695
Allow IQ processing based on only id value before the session is bound.
...
See issue #278
2014-02-14 13:50:21 -08:00
Lance Stout
543250da13
Bump version
2014-02-09 14:39:50 -08:00
Lance Stout
69e55d7316
Merge pull request #280 from allan-simon/develop
...
fixed setRole function,
2014-02-09 14:39:08 -08:00
Lance Stout
158411e918
Include stanza dirs
2014-02-09 14:36:36 -08:00
Lance Stout
3f873002c4
Bump minor version
2014-02-09 14:33:36 -08:00
Lance Stout
818f4e5973
Fix setup.py to include xep_0323 and xep_0325
2014-02-09 14:33:02 -08:00
Allan Simon
c8d6e512d2
fixed setRole function, the check where made against 'affiliation' values, now we do that against actual role values
2014-02-07 12:11:28 +08:00
Lance Stout
a2423b8499
Get the IoT plugins to pass tests on Py3
2014-02-06 09:54:45 -08:00
Lance Stout
49acdac776
Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop
2014-02-06 09:20:24 -08:00
Lance Stout
7e1587faa2
Merge pull request #277 from allan-simon/develop
...
close #276 , now we trigger 'groupchat_message_error'
2014-02-06 09:19:24 -08:00
Lance Stout
84a6ed8e80
Merge pull request #272 from tfriem/develop
...
Fix X-FACEBOOK-PLATFORM authentication in Python3.
2014-02-06 09:18:54 -08:00
Lance Stout
654420e351
Add Py3.3 to list of supported versions
2014-02-06 09:14:22 -08:00
Lance Stout
651915f31c
Add test for wrong sender in IQ
2014-02-06 09:13:28 -08:00
Lance Stout
d9db1b84fe
Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop
2014-02-03 19:19:15 -06:00
Lance Stout
bd03f071c6
Fix verifying 'from' for IQ results.
...
Closes issue #278
2014-02-03 19:15:08 -06:00
Allan Simon
eb6ac68d5c
close #276 , now we trigger 'groupchat_message_error' and muc::ROOM::message_error when we receive a message type=error from the server
2014-01-31 18:54:59 +08:00
Lance Stout
848e6ebd83
Merge pull request #275 from waechtjn/develop
...
XEP-0065 Implementation Broken
2014-01-26 16:53:50 -08:00
waechtjn
f76524fc9f
Fixed XEP-0065 SOCKS5 socket closing
...
SCOKS5 SID were removed multiple times from the _sessions dictionary
2014-01-26 16:53:53 +01:00
waechtjn
b95532b68b
Update xep_0065/proxy.py
...
Removed reference to undefined variable "conn"
2014-01-26 16:48:31 +01:00
Lance Stout
d002d4c06f
Merge pull request #274 from anton-ryzhov/fixes
...
Examples and thread counting
2014-01-21 12:05:02 -08:00
Anton Ryzhov
7c03cc622c
Thread counting fix
2014-01-21 19:28:17 +04:00
Anton Ryzhov
cebfd84416
Examples fixes
2014-01-21 16:19:27 +04:00
Lance Stout
12995e280e
Merge pull request #270 from optiflows/fix_hosts
...
Don't use dnspython for A and AAAA (but keep it for SRV).
2014-01-15 09:51:43 -08:00
Lance Stout
4ae6d44efc
Allow setting custom cipher suites in Py2.7+
2014-01-13 10:14:10 -08:00
Tobias Friemel
01e1878900
Fix X-FACEBOOK-PLATFORM authentication in Python3.
2013-12-23 16:19:49 +01:00
Lance Stout
df9ad82336
Undo event name fix, due to breakage in Py2.x
2013-12-22 01:10:19 -08:00
Lance Stout
c183fd5e35
Merge pull request #271 from louiz/develop
...
Use strings for ElementTree.iterparse events names
2013-12-19 11:23:45 -08:00
Florent Le Coz
820d07f309
Use strings for ElementTree.iterparse events names
...
Because if cElementTree is not available on the system,
ElementTree is used instead, and that version doesn't accept
bytes, resulting in an exception. See
http://bugs.python.org/issue9257#msg152864
2013-12-19 11:47:31 +01:00
Guilhem Lettron
f4e3c04bbf
Don't use dnspython for A and AAAA (but keep it for SRV).
...
dnspython don't perform a full resolv.
For example it don't manage /etc/hosts on linux.
2013-12-09 15:44:35 +01:00
Lance Stout
540d6e9dbb
Merge pull request #267 from juanrmn/develop
...
Added a MUC method 'setRole'. Change role property of a nick in a room, ...
2013-11-26 21:18:34 -08:00
juanrmn
79a3a2befd
Added a MUC method 'setRole'. Change role property of a nick in a room, useful for moderator bots.
2013-11-06 11:20:50 +01:00
Lance Stout
08a0fd5420
Merge pull request #265 from anton-ryzhov/delay_plugins
...
Check delay field existence
2013-10-23 11:09:05 -07:00
Anton Ryzhov
92d6bc6875
Check delay field existence
...
Import missing class
2013-10-23 13:33:52 +04:00
Lance Stout
fb5d20c4f8
Ensure PEP updates default to item if of 'current'
2013-10-09 11:28:09 -07:00
Lance Stout
65e3122f52
Update XEP-0319 plugin to track namespace change.
2013-09-27 00:37:02 -07:00
Lance Stout
be874e3c70
Fix deepcopying JIDs
2013-09-24 16:32:30 -07:00
Lance Stout
beae845281
Fix MAM start query
2013-09-24 16:07:50 -07:00
Lance Stout
6f64dac262
Add log message noting that SCRAM-SHA-1-PLUS requires Py3.3+
2013-09-21 19:10:12 -07:00
Lance Stout
cd2d25cf87
Chmod +x examples, and add shebang lines
2013-09-20 11:50:51 -07:00
Lance Stout
b8b2f37e7b
Make the ssl version log usable
2013-09-17 16:37:52 -07:00
Lance Stout
00152358de
Normalize handling html body content
...
Closes issue #261
2013-09-13 10:01:33 -07:00
Lance Stout
a2784be4d6
Add MAM archived tags
2013-09-12 10:52:15 -07:00
Lance Stout
ad7a57103d
ElementTree._escape_cdata isn't reliable across Python versions.
...
It also does not work as desired.
Revert "Merge pull request #254 from barreverte/develop"
This reverts commit 23750357e2 , reversing
changes made to 07284f380f .
2013-09-12 10:39:10 -07:00
Lance Stout
19b24b276d
Update MAM to use latest carbons.
2013-09-12 10:32:19 -07:00
Lance Stout
23750357e2
Merge pull request #254 from barreverte/develop
...
tostring.escape : optimization
2013-09-12 10:21:56 -07:00
Lance Stout
07284f380f
Merge pull request #207 from spartanbits/pull_request_gevent_check
...
Pull request gevent check
2013-09-12 10:15:53 -07:00
Lance Stout
e60401278f
Merge pull request #255 from anton-ryzhov/logging
...
Add null handler to logging engine
2013-09-05 16:27:43 -07:00
Lance Stout
24c474a9ec
Merge branch 'xep_0323_325' of git://github.com/joachimlindborg/SleekXMPP into joachimlindborg-xep_0323_325
...
Conflicts:
sleekxmpp/plugins/__init__.py
2013-09-05 16:26:18 -07:00
Joachim Lindborg
8fd3781ef5
added disco imformation, fixed some bugs in device
2013-09-04 14:57:27 +02:00
Joachim Lindborg
c85f2494a8
first functional IoT_Test
2013-09-03 22:51:11 +02:00
Lance Stout
6c2fa7a382
Fix pubsub owner subscriptions stanza
2013-08-30 08:51:46 -07:00
Joachim Lindborg
45689fd879
First implementation of the xep_0323 and xep_325 used in IoT systems. Tests are added for stanza and streams
2013-08-30 02:29:52 +02:00
Lance Stout
45a2cfb01b
Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop
2013-08-22 14:57:39 -07:00
Lance Stout
c4bb6c900c
Don't reset _expected_server_name when connecting.
2013-08-22 14:54:53 -07:00
Lance Stout
f7c042fc77
Merge pull request #257 from di/patch-1
...
Typo in _validate_domain error message
2013-08-16 14:52:49 -07:00
Dustin Ingram
b20dc9fe2b
Typo in _validate_domain error message
...
s/illegar/illegal/g
2013-08-16 17:47:26 -04:00
Anton Ryzhov
a030e05993
Add null handler to logging engine
2013-08-10 21:34:18 +04:00
Lance Stout
648b03f811
Make send_message(mhtml='..') work as expected without loading plugin
...
71.
2013-08-07 08:48:15 -07:00
Lance Stout
e57e321d33
Try re-ordering initial imports to avoid import bugs
2013-08-06 15:54:02 -07:00
Jean-Philippe Caruana
b6e53c7b1b
escape: use xml.etree.ElementTree._escape_attrib to avoid duplication
2013-07-31 11:02:10 +02:00
Jean-Philippe Caruana
1c3bfd949b
escape: imports at the top
2013-07-31 11:02:06 +02:00
Lance Stout
6401c9aaaa
Add back ET and ElementBase references
2013-07-30 11:46:04 -07:00
Jean-Philippe Caruana
c02adbb8e1
tostring.escape : optimization
...
use of xml.etree.ElementTree._escape_attrib and xml.etree.ElementTree._escape_cdata
2013-07-30 18:51:23 +02:00
Jean-Philippe Caruana
88e64dbfae
Merge remote-tracking branch 'upstream/develop' into develop
2013-07-30 18:02:03 +02:00
Lance Stout
afd48b9e08
Merge pull request #253 from kxepal/patch-1
...
Don't resolve AAAA records if there is no dnspython nor IPv6 support
2013-07-29 09:54:40 -07:00
Jean-Philippe Caruana
db0ab9a0b3
.gitignore: idea
2013-07-29 12:22:10 +02:00
Alexander Shorin
556e4bd74d
Don't resolve AAAA records if there is no dnspython nor IPv6 support
...
If system doesn't has IPv6 support or dnspython package, socket.getaddrinfo
with AF_INET6 flag return weird IP info for requested host, making SleekXMPP
crush with more weird error.
2013-07-29 14:21:46 +04:00
Lance Stout
d439c4f215
Merge pull request #252 from jpcaruana/develop
...
refactor : optimize imports + replace mutable argument (a list) in StateMachine constructor
2013-07-29 02:24:33 -07:00
Jean-Philippe Caruana
a9f2e1482c
fix: replace mutable argument (a list) in StateMachine constructor
2013-07-26 17:48:33 +02:00
Jean-Philippe Caruana
2c26fb0d76
optimize imports
2013-07-26 17:48:33 +02:00
Jean-Philippe Caruana
18dde97c8c
refactor: no import * in tests
2013-07-26 13:02:26 +02:00
Lance Stout
85bc6f5301
Merge pull request #251 from jpcaruana/jid_performance
2013-07-25 11:23:27 -07:00
Jean-Philippe Caruana
8f364b9a95
performance in jid : replace __getattr__ et __setattr__ by @property and @xxx.setter
...
this implementatian is much more verbose but faster, especilally if you are dealing a lot with JIDs
on my box, ./testall.py now takes 45s. It takes 53s in the old implementation (about 15% faster)
2013-07-25 16:36:18 +02:00
Lance Stout
ee6c5632ac
Merge pull request #248 from jakebasile/develop
...
Caught OSError when querying AAAA records.
2013-07-18 12:59:16 -07:00
Jake Basile
cc81a0e8da
DRYed up the OSError/socket.gaierror handler.
2013-07-18 13:07:25 -05:00
Jake Basile
262652992d
Caught OSError when querying AAAA records.
2013-07-18 08:25:28 -05:00
Lance Stout
eb63825dfd
Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop
2013-07-05 14:05:39 -07:00
Lance Stout
c49017c6f1
Update 319 plugin to update XEP-0012/256 last activity too.
2013-07-05 14:04:48 -07:00
Lance Stout
7d08bd3142
Merge pull request #247 from anton-ryzhov/block_queues
...
Blocking queue get
2013-07-01 00:12:25 -07:00
Anton Ryzhov
f12c241dca
Blocking queue get
2013-07-01 10:30:43 +04:00
Lance Stout
cedc9dd175
Adjust get_roster to always return, even with invalid JIDs
...
Issue #245
2013-06-29 22:33:00 -07:00
Lance Stout
669e708b70
Fix import error
2013-06-23 18:24:35 -07:00
Lance Stout
e76a483931
Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop
2013-06-22 14:35:20 -07:00
Lance Stout
c0437d2de8
Add roster migration example
2013-06-22 14:35:00 -07:00
Lance Stout
37a8043202
Merge pull request #244 from anton-ryzhov/speedup
...
Speedup main threads loops
2013-06-20 09:21:38 -07:00
Lance Stout
f4c69d4045
Merge pull request #243 from anton-ryzhov/skip_eintr
...
Skip EINTR errors on raw sockets
2013-06-20 09:19:53 -07:00
Anton Ryzhov
a3606d9e4d
Fixed scheduler wait loop
...
Do fastloop wait until task run time
2013-06-20 18:30:07 +04:00
Anton Ryzhov
805f1c0e39
Use timeout constants instead of magic numbers in scheduler and event loop
...
Set default wait timeout as max() of previous values
2013-06-20 18:30:07 +04:00
Anton Ryzhov
7430a8ca40
Some optimizations in scheduler
2013-06-20 18:30:07 +04:00
Anton Ryzhov
1776e2edcc
Skip EINTR errors on raw sockets
2013-06-20 18:29:53 +04:00
Lance Stout
baf9aaf26c
Add test for nodeprep idempotency after explicitly using Unicode 3.2
2013-06-19 08:21:54 -07:00
Lance Stout
4864b07e13
Explicitly use Unicode 3.2 for StringPrep profiles.
...
See http://labs.spotify.com/2013/06/18/creative-usernames/
2013-06-19 00:28:11 -07:00
Lance Stout
13c919773e
Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop
2013-06-07 19:00:42 -04:00
Lance Stout
ed3a4fb8d4
Add support for XEP-0319, idle presence
2013-06-07 19:00:22 -04:00
Lance Stout
df3e826d0a
Merge pull request #242 from Florob/xep-0084-id
...
Properly set itemID for XEP-0084 metadata
2013-06-07 10:09:30 -07:00
Florian Zeitz
a9e7d489b8
Properly set itemID for XEP-0084 metadata
2013-06-07 13:29:28 +02:00
Lance Stout
da6b549f8b
Merge pull request #239 from SecurityForUs/add_95_96_to_setup
...
Add xep_0095 and xep_0096 to setup so they are installed into the egg
2013-05-27 13:40:57 -07:00
Eric Hansen
76e07a9089
Add xep_0095 and xep_0096 to setup so they are installed into the egg
2013-05-27 06:14:21 -04:00
Lance Stout
4a590d1497
Simplify stream method unregistration process
2013-05-26 14:53:28 -07:00
Lance Stout
82e1508d6f
Make stream initiation methods unregisterable.
2013-05-26 14:50:01 -07:00
Lance Stout
400f08db9d
Fix crash conditions in IBB
2013-05-22 14:27:14 -07:00
Lance Stout
e48b650caa
Fix encrypting with GPG
2013-05-22 11:59:17 -07:00
Lance Stout
d9f595283a
Merge pull request #234 from SecurityForUs/str_no_stripped
...
.stripped() would result in error
2013-05-22 10:19:52 -07:00
Eric Hansen
85fd14f47f
.stripped() would result in error
2013-05-22 09:16:49 -04:00
Joachim Lindborg
b7adaafb3e
First test stanza
2013-05-17 12:18:00 +02:00
Lance Stout
d0bba87cdd
Only remap component namespaces for top level stream elements.
2013-05-14 14:28:16 -07:00
Lance Stout
2cc75d4bbd
Update copyright years, and license for Suelta
2013-05-13 14:09:28 -07:00
Lance Stout
24bd591faa
Update copyright for sasl modules.
2013-05-13 13:33:04 -07:00
Lance Stout
2e9ccd0623
Merge branch 'si_file_transfer' into develop
2013-05-11 12:48:47 -07:00
Lance Stout
7b49c82210
Add support for XEP-0152: Reachability Addresses
2013-05-11 12:22:56 -07:00
Lance Stout
d3284f1604
Merge pull request #232 from kstaniek/develop
...
Fix in tzoffset and _get_fixed_offset_tz
2013-05-09 12:19:35 -07:00
Klaudiusz Staniek
3279697128
Fix in tzoffset and _get_fixed_offset_tz
...
The tzoffset object is constructed with offset in minutes not in
seconds.
2013-05-09 20:59:00 +02:00
Lance Stout
60cfab995f
Try preventing strptime thread safety problems.
...
Fixes #231
2013-04-27 03:56:20 -07:00
Lance Stout
8ec18bdb2c
Carry scheduled kwargs all the way
2013-04-23 11:09:04 -07:00
Lance Stout
3c3cd65235
Update gitignore
2013-04-01 22:43:26 -07:00
Lance Stout
7ac75de19d
Make XMLMasks match properly for components.
2013-04-01 20:57:16 -07:00
Lance Stout
fae39e1ab4
Fix some errors in the IBB plugin.
2013-03-29 13:16:18 -07:00
Lance Stout
3732139fc3
Save progress on SI file transfer
2013-03-29 13:16:18 -07:00
Lance Stout
0a2737dc77
Merge pull request #228 from anton-ryzhov/events
...
Some events refactoring
2013-03-28 12:20:38 -07:00
Anton Ryzhov
481971928c
failed_auth data returned
...
Manual updated
2013-03-28 22:41:00 +04:00
Anton Ryzhov
020197718f
Event index documentation updated
2013-03-28 22:09:33 +04:00
Anton Ryzhov
a0c77c04a5
XMLStream proxy_error event duplicated with connection_failed
...
SASL `no_auth` event duplicated with `failed_auth`
2013-03-28 22:09:33 +04:00
Anton Ryzhov
620ee9719f
Changed failed_auth event according to manual
2013-03-28 22:09:33 +04:00
Anton Ryzhov
c0d02d9935
Remove roster_received event
2013-03-28 22:09:33 +04:00
Anton Ryzhov
01356d23e5
Log events triggering
2013-03-28 20:44:37 +04:00
Lance Stout
8b73c2bcff
Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop
2013-03-11 16:42:15 -07:00
Lance Stout
5a771dbe2f
Prevent race condition in pubsub test.
2013-03-11 16:41:44 -07:00
Lance Stout
9ba5b644cf
Add XEP-0196 for User Gaming, from mathieui
2013-03-11 16:26:26 -07:00
Lance Stout
f76f0c3787
Merge pull request #226 from imo/develop
...
Correct argument order by using keyword for keepalive.
2013-03-06 22:15:26 -08:00
Patrick Horn
01abd6a705
Correct argument order by using keyword for keepalive.
2013-03-06 21:35:07 -08:00
Lance Stout
44e2b5d945
Bump version in prep for 1.2.0
2013-02-28 11:53:24 -08:00
Lance Stout
82bbe5d1a6
Merge branch 'develop'
2013-02-25 09:53:35 -08:00
Lance Stout
a1d71d31e8
Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop
2013-02-22 10:08:35 -08:00
Lance Stout
766e0b685d
Clear out iterable data when resetting Disco items.
2013-02-22 10:07:19 -08:00
Lance Stout
58f5e4702b
Merge pull request #224 from anton-ryzhov/no_deprecated_methods_usage
...
Don't use internally deprecated methods
2013-02-21 13:55:34 -08:00
Anton Ryzhov
d9906756cf
Don't use internally deprecated methods
2013-02-22 01:48:03 +04:00
Lance Stout
9a45ebd98b
Merge branch 'develop'
2013-02-19 01:01:09 -08:00
Lance Stout
7f9ff9d0e7
Use requested_jid instead of boundjid during binding.
2013-02-18 11:56:04 -08:00
Lance Stout
8c763fcf43
Merge pull request #223 from anton-ryzhov/resource_generation
...
Fixed resource generation via uuid
2013-02-18 11:54:20 -08:00
Anton Ryzhov
6dd4456b11
Fixed resource generation via uuid
2013-02-18 23:41:13 +04:00
Lance Stout
c30c47d291
Add XEP-0020 support.
2013-02-15 10:36:31 -08:00
Lance Stout
d8c9662302
Resolve most Python3.3 related issues.
...
Tests now run successfully. Occasionally get single error related to
duplicated payload data in pubsub items when copying stanza values.
2013-02-14 01:24:09 -08:00
Lance Stout
ec5e819b16
Merge branch 'develop'
2013-02-12 09:38:57 -08:00
Lance Stout
55e50ad979
Add XEP-0079 Advanced Message Processing plugin.
2013-02-12 01:30:44 -08:00
Lance Stout
99ecb166d3
More caps cleanup
2013-02-11 20:01:53 -08:00
Lance Stout
cdeae7e72f
Make legacy caps log more useful, until we support legacy caps.
2013-02-11 19:53:57 -08:00
Lance Stout
fbf79755d7
Track which verstrings are being checked, so we don't request duplicates.
2013-02-11 19:49:38 -08:00
Lance Stout
78bd21b7cf
Support using messages for IBB data transfer.
2013-02-11 18:08:34 -08:00
Lance Stout
88c7c29954
Ensure gmail last result time and tid are always updated.
2013-02-10 11:55:49 -08:00
Lance Stout
d4dde89ea6
Remove old_* plugins.
2013-02-10 11:47:58 -08:00
Lance Stout
774bf35fab
Tidy up a bit
2013-02-10 11:47:47 -08:00
Lance Stout
1a2db7fb11
Merge branch 'xep_0077'
2013-02-10 11:30:37 -08:00
Lance Stout
da3223ac92
Merge branch 'develop'
2013-02-10 11:29:57 -08:00
Lance Stout
b0fed5a48d
Merge pull request #221 from Roger/fix_gmail_notify_check
...
fixed gmail new mail notification check
2013-02-10 11:27:23 -08:00
roger
43132dab85
fix not blocking gmail notification check
2013-02-09 12:31:13 -03:00
roger
badd327360
fixed gmail new mail notification check
...
without the tid gmail ignores the query
2013-02-09 11:34:46 -03:00
Lance Stout
9a6bfc6614
Enable force_registration in the register account example.
2013-02-08 09:44:39 -08:00
Lance Stout
79914fb56b
Add option to XEP-0077 plugin to force registration attempts.
2013-02-08 09:36:51 -08:00
Lance Stout
75a792eb6f
Fix HTML-IM lang support.
2013-02-08 09:09:07 -08:00
Lance Stout
23f112602c
Get tests to pass again.
...
Re-add old gmail_notify plugin for now.
2013-01-26 15:15:01 -08:00
Lance Stout
639a3aa832
Add Google plugins to setup.py
2013-01-26 14:40:23 -08:00
Lance Stout
79a8c5ceae
Add proper XEP-0071 plugin.
2013-01-26 14:33:52 -08:00
Lance Stout
97a2f4449d
Handle lang='*' in disco info
2013-01-26 14:31:08 -08:00
Lance Stout
7f42d15175
Fix ping event issue.
2013-01-26 14:12:44 -08:00
Lance Stout
ef9c8e910c
Tighten up session checks in XEP-0050 plugin.
2013-01-25 09:52:29 -08:00
Lance Stout
a1b33da9ca
Refactor Google GTalk extensions into a single meta plugin.
2013-01-24 23:05:05 -08:00
Lance Stout
1741059cf6
Add Google JID Domain Discovery plugin
2013-01-24 02:46:16 -08:00
Lance Stout
1f137735e1
Put StringPrep exception handler with the right try block.
2013-01-24 02:45:28 -08:00
Lance Stout
a186972f09
Ensure XMPPError.text is a string.
2013-01-24 02:45:14 -08:00
Lance Stout
751628401e
Fixes for vCard avatar hash calculations and MUC considerations.
2013-01-24 02:44:27 -08:00
Lance Stout
403b1802ec
Update tostring to inject xmlns definitions when needed.
2013-01-24 02:43:46 -08:00
Lance Stout
9165cbf7f6
Cleanup and expand XEP-0065 plugin.
2013-01-23 02:18:27 -08:00
Lance Stout
bad405bea9
Merge branch 'master' into develop
2013-01-21 02:34:22 -08:00
Lance Stout
4f9a95b011
Add plugin for Google's nosave feature.
2013-01-21 01:39:08 -08:00
Lance Stout
903e641457
Fix issues in Google settings plugin.
2013-01-21 01:38:42 -08:00
Lance Stout
f34b9399cc
Simplify Gmail notifications.
2013-01-21 01:38:02 -08:00
Lance Stout
7d0d96f940
Add Google Settings plugin.
2013-01-20 23:59:28 -08:00
Lance Stout
27196a21ae
Modernize the Gmail plugin.
2013-01-20 23:01:54 -08:00
Lance Stout
ea0381fa09
Remove old versions of some plugins.
2013-01-20 21:35:06 -08:00
Lance Stout
3423589ba1
Updated XEP-0199 to take and return standardized values.
...
Handles Iq errors appropriately when the recipient can't be found.
2013-01-20 20:14:16 -08:00
Lance Stout
1f9286d39e
Add BoB data to message and presence stanzas.
2013-01-20 18:44:17 -08:00
Lance Stout
93b8e66b5d
Remove unused portions of XMLMask
2013-01-20 16:24:50 -08:00
Lance Stout
a1716de683
Update tests for XEP-0092
2013-01-20 16:08:01 -08:00
Lance Stout
ccf7916257
Allow for simplified XPath namespaces
2013-01-20 15:43:02 -08:00
Lance Stout
d86adfa1b1
Updated XEP-0092 to take callbacks and return the version result stanza.
2013-01-20 13:54:01 -08:00
Lance Stout
648f3f978a
Merge branch 'master' into develop
2013-01-16 23:37:05 -08:00
Lance Stout
5e4b8bd67c
Ensure that initial vCard requests are sent.
2013-01-16 23:36:22 -08:00
Lance Stout
64ef690432
Merge branch 'master' into develop
2013-01-16 23:06:41 -08:00
Lance Stout
41991b5982
Fix logging for vcard lookup failure.
2013-01-16 23:06:13 -08:00
Lance Stout
01da222d67
Merge branch 'master' into develop
2013-01-16 22:33:05 -08:00
Lance Stout
518eee05c2
Set vCard avatar hash on startup.
2013-01-16 22:32:40 -08:00
Lance Stout
1dbfa29a1e
Merge branch 'master' into develop
2013-01-16 16:26:35 -08:00
Lance Stout
6bac4741f6
Fix setting autojoin in bookmarks.
2013-01-16 16:26:19 -08:00
Lance Stout
a0266dac6f
Merge branch 'master' into develop
2013-01-11 17:19:29 -08:00
Lance Stout
ce977a7809
Don't reset exponential backoff delay until a stream has been confirmed.
2013-01-11 17:18:58 -08:00
Lance Stout
8644a83ed9
Merge branch 'master' into develop
2013-01-09 22:14:00 -08:00
Lance Stout
7b45245b1d
Fix sending BOB data in Python3
2013-01-09 22:13:44 -08:00
Lance Stout
f04f4e4a1a
Merge branch 'master' into develop
2013-01-08 21:14:34 -08:00
Lance Stout
b07f1b3bd3
Give X-FACEBOOK-PLATFORM precedence over DIGEST-MD5
2013-01-08 21:14:05 -08:00
Lance Stout
0e7486d7b4
Merge branch 'master' into develop
2013-01-04 03:00:43 -08:00
Lance Stout
6c0afb87b9
Add XEP-0048 support
2013-01-04 00:32:14 -08:00
Lance Stout
e5750b368e
Fix setting publish options for pubsub storage.
2013-01-04 00:25:46 -08:00
Lance Stout
ef76f923ad
Merge branch 'master' into develop
2013-01-02 17:05:35 -08:00
Oskari Timperi
2c04ae084c
util/sasl/mechanisms.py: SASLMutualAuthFailed not defined
...
SASLMutualAuthFailed was not imported from sleekxmpp.util.sasl.client
2013-01-02 17:05:23 -08:00
Lance Stout
91dc58d967
Fix startup issues with components using caps and vcards.
2013-01-02 17:04:27 -08:00
Lance Stout
0e2abe74d5
Merge pull request #215 from oswjk/patch-1
...
util/sasl/mechanisms.py: SASLMutualAuthFailed not defined
2013-01-02 12:57:02 -08:00
Oskari Timperi
fea444925e
util/sasl/mechanisms.py: SASLMutualAuthFailed not defined
...
SASLMutualAuthFailed was not imported from sleekxmpp.util.sasl.client
2013-01-02 16:53:16 +02:00
Lance Stout
0998429b07
Merge branch 'master' into develop
2012-12-29 15:17:34 -08:00
Lance Stout
597eb1779c
Fix other instance of inet_pton usage.
2012-12-29 15:17:15 -08:00
Lance Stout
9ae3a7dbff
Merge branch 'master' into develop
2012-12-21 13:44:08 -08:00
Lance Stout
3519e845a3
Apparently twisted fills in inet_pton on Windows and uses different exceptions.
2012-12-21 13:43:38 -08:00
Lance Stout
29c049612a
Merge branch 'master' into develop
2012-12-18 10:33:33 -08:00
Lance Stout
ed48185732
Fix unicode conversion in Python3
2012-12-18 10:33:14 -08:00
Lance Stout
f431bbfca2
Merge branch 'master' into develop
2012-12-14 09:37:45 -08:00
Lance Stout
8b29900be4
Fix some Python3 compatibility issues.
2012-12-14 09:37:29 -08:00
Lance Stout
6f8a4f8354
Merge branch 'master' into develop
2012-12-03 12:42:53 -08:00
Lance Stout
def34f0e42
Fix requesting channel binding from sockets that don't support it.
2012-12-03 12:42:30 -08:00
Lance Stout
e25a49f804
Merge branch 'master' into develop
2012-11-27 19:57:48 -05:00
Lance Stout
b820351f64
Fix DIGEST-MD5 support for picky servers
2012-11-27 19:54:46 -05:00
Lance Stout
0eb009496e
Use the username credential instead of jid to enable ANONYMOUS auth.
2012-11-27 19:53:43 -05:00
Lance Stout
2c2498b658
Allow for more credential values to be user specified instead of auto-filled.
2012-11-27 19:53:04 -05:00
Pedro Vicente
a1d988fed5
Merge branch 'upgrading_sleekxmpp_1_1_11' into develop_sleek
2012-11-12 13:55:32 +01:00
Pedro Vicente
b0c50b7a59
Added gevent as parameter to testall checking test suite with gevent
...
enabled/disabled
2012-11-12 13:48:20 +01:00
Pedro Vicente
1a2b404076
Checked if gevent thread is patched to do the right import
2012-11-12 13:33:09 +01:00
Lance Stout
2d066c34fd
Merge branch 'master' into develop
2012-11-09 09:58:51 -08:00
Lance Stout
7a1ed64985
Don't clobber SASL config when specifying sasl_mech in ClientXMPP constructor.
2012-11-09 09:57:20 -08:00
Lance Stout
1b449585f7
Merge pull request #205 from SeyZ/develop
...
Xep 0065 improvements
2012-11-04 16:01:22 -08:00
Sandro Munda
032d41dbb8
Adapted the xep_0065 plugin to be compatible with all kind of others XMPP
...
client.
Sent a 'socks_connected' xmpp event when the streamer is connected.
2012-11-04 11:44:33 +01:00
Sandro Munda
3a7569e3ea
Avoided to log a debug message error when the socket is normally closed.
2012-11-01 11:38:55 +01:00
Sandro Munda
d444930494
Improved the gitignore files (vim temp file, .pyo file and .baboon directory).
...
Automatically pack & unpack data through the socket.
Added some comments to the pack method.
Handled possible error during the unpacking of data.
2012-11-01 11:17:05 +01:00
Lance Stout
6045a6bfb3
Bump version to 1.1.11
2012-11-01 11:17:05 +01:00
Lance Stout
f3f543b31e
Merge branch 'master' into develop
2012-10-31 13:55:49 -07:00
Lance Stout
0fea4262ea
Bump version to 1.1.11
2012-10-31 13:55:30 -07:00
Joe Hildebrand
ef1c4368d0
Merge branch 'master' of git://github.com/fritzy/SleekXMPP into develop
...
# By Joe Hildebrand (2) and Lance Stout (1)
# Via Lance Stout
* 'master' of git://github.com/fritzy/SleekXMPP:
Relax timing issues in Iq timeout callback test.
update JID_CACHE logic again.
Allow IQ timeouts to be asynchronous, by passing a timeout_callback parameter to send(). An example modification of disco is included. If this approach is approved, I'll go through and update the other plugins.
Conflicts:
tests/test_stream_handlers.py
2012-10-31 14:44:51 -06:00
Lance Stout
4b7ec4a32a
Merge branch 'master' into develop
2012-10-31 13:42:32 -07:00
Lance Stout
2229ad8d8e
Relax timing issues in Iq timeout callback test.
2012-10-31 13:41:55 -07:00
Joe Hildebrand
61aff9f49a
update JID_CACHE logic again.
2012-10-31 13:27:31 -07:00
Joe Hildebrand
67235c4214
Allow IQ timeouts to be asynchronous, by passing a timeout_callback parameter to send(). An example modification of disco is included. If this approach is approved, I'll go through and update the other plugins.
2012-10-31 13:27:06 -07:00
Joe Hildebrand
48def71d0c
Merge branch 'master' of git://github.com/fritzy/SleekXMPP into develop
...
# By Lance Stout
# Via Lance Stout
* 'master' of git://github.com/fritzy/SleekXMPP:
Turns out not all data is UTF-8, so don't try to decode it.
2012-10-31 12:49:33 -06:00
Lance Stout
a00eee1bbe
Merge branch 'master' into develop
2012-10-31 00:17:26 -07:00
Lance Stout
12e8bb6ddc
Turns out not all data is UTF-8, so don't try to decode it.
...
Fixes issue #204
2012-10-31 00:16:58 -07:00
Joe Hildebrand
c8c20fff71
update JID_CACHE logic again.
2012-10-29 14:15:07 -06:00
Joe Hildebrand
75a18b5ffe
Allow IQ timeouts to be asynchronous, by passing a timeout_callback parameter to send(). An example modification of disco is included. If this approach is approved, I'll go through and update the other plugins.
2012-10-29 10:03:32 -06:00
Lance Stout
06a690a259
Merge branch 'master' into develop
2012-10-24 13:07:19 -07:00
Paul Molodowitch
52feabbe76
added setdefaultencoding method so reload(sys) not needed
...
reload(sys) could cause problem in user code - ie, sys.stdout, excepthook, and displayhook would be reset, etc
2012-10-24 13:06:36 -07:00
Lance Stout
14c9e9a9cc
Merge branch 'master' into develop
2012-10-24 13:00:01 -07:00
Lance Stout
a22ca228cc
Lock the bound JID in the JID cache.
2012-10-24 12:56:54 -07:00
Lance Stout
d0666a5eb6
Update JID cache to do extra memoization and locking.
...
Passing cache_lock=True to JID() will insert the JID into the cache
and prevent it from being dropped from the cache.
2012-10-24 12:47:25 -07:00
Lance Stout
931d49560a
Merge branch 'master' into develop
2012-10-24 01:23:08 -07:00
Lance Stout
2a4e435228
Enable gevent support.
...
Closes issues #166 and #167
Thanks to @pvicent, @chason, and @gabriel-samfira
2012-10-24 01:20:23 -07:00
Lance Stout
3655827ef2
Merge branch 'master' into develop
2012-10-22 20:10:07 -07:00
Lance Stout
c5046b9c91
Fix JID cache (wrong in-progress version comitted earlier)
2012-10-22 20:09:35 -07:00
Lance Stout
4598031dd2
Respond to probes when the subscription is 'from', not 'to'.
2012-10-22 19:22:27 -07:00
Lance Stout
12e0e1a16b
Merge branch 'master' into develop
2012-10-22 13:58:12 -07:00
Lance Stout
5e9266ba90
Optimize generating JIDs with some caching.
2012-10-22 13:57:49 -07:00
Lance Stout
0d448b8221
Merge branch 'master' into develop
2012-10-19 00:15:21 -07:00
Lance Stout
e6c95f0a2a
Add support for XEP-0257: Client Certificate Management for SASL EXTERNAL
2012-10-19 00:06:45 -07:00
Lance Stout
63b58edda1
Allow passing form instructions as a list of strings.
2012-10-19 00:06:45 -07:00
Lance Stout
af9632519c
Always cache published vcard
2012-10-18 12:26:50 -07:00
Lance Stout
d367fb938d
Recognize plugin stanzas when they're appended.
2012-10-18 12:26:17 -07:00
Lance Stout
77f2a339e1
Merge branch 'master' into develop
2012-10-15 22:27:30 -07:00
Lance Stout
4190027a78
Prevent xmlns="" in stream output.
...
This was causing problems for HTML-IM because the HTML is parsed
without a namespaced context.
While xmlns="" technically can be valid, it's usually wrong, so this will work
for now until the HTML-IM parsing is fixed.
2012-10-15 22:22:07 -07:00
Lance Stout
ef48a8c4d9
Simplify xep-0084 avatar metadata publishing.
2012-10-15 22:20:38 -07:00
Lance Stout
829b225053
Fix vcard-temp stanzas to include organization data.
2012-10-15 22:20:13 -07:00
Lance Stout
747a6e94e6
Auto-subscribe to whitelisted JIDs if auto_subscribe is true
2012-10-15 22:19:47 -07:00
Lance Stout
cebc798e72
Merge branch 'stream_features'
2012-10-15 15:00:23 -07:00
Lance Stout
7c485c6a8b
Merge branch 'master' into develop
2012-10-14 17:35:37 -07:00
Lance Stout
e2e8c4b5dc
Remove unneeded ssl_support checks.
2012-10-10 11:42:24 -07:00
Lance Stout
675c0112ac
Correct handling deleting plugins when xml:lang is active.
2012-10-10 11:07:25 -07:00
Lance Stout
4dd2c15775
Update carbons plugin to use latest spec.
2012-10-10 10:48:30 -07:00
Lance Stout
9f6decdbc1
Fix XEP-0078 error handling
2012-10-05 09:49:04 -07:00
Lance Stout
fc07e23ff8
Merge branch 'master' into develop
2012-10-05 08:58:22 -07:00
Lance Stout
4ea328b9f2
Fix empty namespaces in XEP-0045 plugin.
2012-10-05 08:58:04 -07:00
Lance Stout
84a2fc382b
Merge branch 'master' into develop
2012-10-02 09:51:24 -07:00
Lance Stout
098714b3c4
Unclobber connected event handler names.
...
Fixes issue #199
2012-10-02 09:25:30 -07:00
Lance Stout
cf2c94d974
Add stream_negotiated event.
...
Fires after all stream features have been processed.
2012-10-01 16:28:31 -07:00
Lance Stout
657102e938
Update legacy auth to be used outside of stream features.
...
Also, add detection of legacy XMPP version.
2012-10-01 16:27:55 -07:00
Lance Stout
44e7585bf8
Merge branch 'master' into develop
2012-09-30 17:15:13 -07:00
Lance Stout
94488fa2ea
Expand warning for missing ASN1 parser to include pyasn1_modules
2012-09-30 17:14:45 -07:00
Lance Stout
a2c60a4911
Merge branch 'master' into develop
2012-09-28 11:02:57 -07:00
Lance Stout
ee9c4abd08
Add support for XEP-0091: Legacy Delayed Delivery
2012-09-26 01:47:45 -07:00
Lance Stout
b5b1c932c7
Add support for XEP-0013: Flexible Offline Message Retrieval
2012-09-26 01:47:05 -07:00
Lance Stout
b8f04983e1
Allow disco queries to got to server when no JID is specified and marked not local.
2012-09-26 01:42:51 -07:00
Lance Stout
90807dd973
Fix RSM tests
2012-09-25 23:22:49 -07:00
Lance Stout
ef974114ea
Add support for XEP-0313: Message Archive Management
...
NOTE: XEP-0313 is still very experimental, and there will likely be
API changes in the future.
2012-09-25 20:20:43 -07:00
Lance Stout
f6e1fecdf8
Add Collector stanza handler class.
...
This style of handler is necessary for capturing result sets from
queries that use multiple messages to send the results instead of
in a single result stanza. Notably, XEP-0313 (MAM).
2012-09-25 20:20:22 -07:00
Lance Stout
94e8b2becf
Update RSM iterator to specify where to look to count result sizes.
2012-09-25 20:17:37 -07:00
Lance Stout
a6ca6701a0
Add XEP-0308 Last Message Correction support
2012-09-25 12:35:53 -07:00
Lance Stout
c4edb9724b
Fix copyright year
2012-09-25 12:27:44 -07:00
Lance Stout
b5c669bdff
Add options to auto add ID values to message and presence stanzas.
2012-09-25 12:26:56 -07:00
Lance Stout
e449dce65c
Fix handling forwarded stanzas to do proper lookups and deletions.
2012-09-25 12:25:45 -07:00
Lance Stout
73ce9a5ecc
Merge branch 'master' into develop
2012-09-25 02:45:48 -07:00
Lance Stout
671f680bb3
Add support for XEP-0280 Message Carbons
2012-09-25 02:34:51 -07:00
Lance Stout
dfff19ffbf
Add XEP-0297: Stanza Forwarding support
2012-09-24 22:59:19 -07:00
Lance Stout
a4abdf9fa6
Fix deleting non-existent stanza plugins.
2012-09-24 21:00:23 -07:00
Lance Stout
6c57bb0553
Simplify stringifying XML
2012-09-24 20:59:51 -07:00
Lance Stout
d385b9e708
Merge branch 'master' into develop
2012-09-18 10:37:04 -07:00
Lance Stout
c2ae1ee891
Remove race condition when aborting while connecting/reconnecting.
2012-09-18 10:35:53 -07:00
Lance Stout
67147570e9
Merge branch 'master' into develop
2012-09-13 11:00:58 -07:00
Lance Stout
fb3e6b7e35
Don't break checking certs for localhost.
2012-09-13 11:00:29 -07:00
Lance Stout
cf28d4586d
Add support for XEP-0049: Private XML Storage
2012-09-11 20:39:32 -07:00
Lance Stout
f65eb5eeea
Add support for Google's X-OAUTH2 SASL mechanism
2012-09-11 20:29:22 -07:00
Lance Stout
26fa9bd87e
Don't perform caps lookup if the disco info is already known.
2012-09-11 20:28:28 -07:00
Lance Stout
0016d9a638
Add support for XEP-0279: Server IP Check
2012-09-04 20:39:43 -07:00
Lance Stout
a88b9737ff
Add support for XEP-0235: OAuth over XMPP
2012-09-04 19:42:49 -07:00
Lance Stout
df9ac58d05
Merge branch 'master' into develop
2012-09-01 13:57:24 -07:00
Lance Stout
357406d801
Map <group /> elements with no content to '' instead of None.
2012-09-01 13:56:48 -07:00
Lance Stout
19a78f63f4
Merge branch 'master' into develop
2012-08-24 11:51:03 -07:00
Lance Stout
c7ec6a72cd
Add catch-all chatstate event.
2012-08-24 11:47:21 -07:00
Florian Fieber
e68b07dbce
Fix get_blocked() in XEP-0191
2012-08-24 11:44:56 -07:00
Lance Stout
e20610ab80
Merge pull request #197 from FlorianFieber/develop
...
Fix get_blocked() in XEP-0191
2012-08-23 11:04:30 -07:00
Lance Stout
1ca0c46333
Special plugin loading case for xep_0115 no longer needed.
2012-08-23 00:23:32 -07:00
Florian Fieber
e510875f64
Fix certificate expiration scheduler
...
timedelta.seconds does not store the total seconds of a time span.
Internally, seconds is the next smaller unit to days, hence
timedelta.seconds will never exceed (or reach) the number of seconds
in a day (60*60*24=86400)
2012-08-23 00:22:22 -07:00
Florian Fieber
f52a10b061
Fix get_blocked() in XEP-0191
2012-08-23 03:57:05 +02:00
Lance Stout
7d382a2bfd
Merge pull request #195 from FlorianFieber/develop
...
Fix certificate expiration scheduler
2012-08-19 10:11:17 -07:00
Florian Fieber
09bec1c4fe
Fix certificate expiration scheduler
...
timedelta.seconds does not store the total seconds of a time span.
Internally, seconds is the next smaller unit to days, hence
timedelta.seconds will never exceed (or reach) the number of seconds
in a day (60*60*24=86400)
2012-08-19 16:40:22 +02:00
Lance Stout
ff28b0a005
Merge branch 'master' into develop
2012-08-17 10:18:11 -07:00
Lance Stout
8a03bd72ae
Ensure that auth is done based on the original, requested JID and not on the bound JID.
2012-08-17 10:17:35 -07:00
Lance Stout
a249f8736a
Merge branch 'master' into develop
2012-08-14 11:06:54 -07:00
Lance Stout
f0e1fc5aad
Fix using PLAIN over older SSL method.
2012-08-14 11:06:36 -07:00
Lance Stout
f09adf0014
Merge branch 'master' into develop
2012-08-14 09:55:05 -07:00
Lance Stout
c6ac64ed2d
Help prevent race condition dealing with auto_reconnect
2012-08-14 09:54:38 -07:00
Lance Stout
04dc68f5f6
Merge branch 'master' into develop
2012-08-13 11:12:41 -07:00
Lance Stout
92be051450
Handle Iq errors/timeouts in XEP-0153 hash reset.
2012-08-13 11:09:35 -07:00
Lance Stout
5c25208fb5
Merge branch 'master' into develop
2012-08-12 22:36:23 -07:00
Lance Stout
779c258e27
Fix ISO date parsing fallback.
...
Closes issue #194
2012-08-12 22:35:42 -07:00
Lance Stout
962dfad216
Merge branch 'master' into develop
2012-08-10 14:15:55 -07:00
Lance Stout
f7a710e55b
Add abort() method to kill the session and stop all processing without properly closing the stream.
2012-08-10 14:12:05 -07:00
Lance Stout
814a50e36f
Fix handling state machine lock when quick exiting.
2012-08-10 14:11:44 -07:00
Lance Stout
230465b946
Fix unicode conversion utility.
2012-08-10 12:41:29 -07:00
Lance Stout
d11a67702e
Exit transition immediately if already in the desired state.
2012-08-10 12:41:02 -07:00
Lance Stout
4e12e228cb
Fix tracking service name for DIGEST-MD5
2012-08-10 12:40:28 -07:00
Lance Stout
4a94aeba49
Save a user's chosen, persistent nickname in the MUC roster data as 'alt_nick'
...
The use of <nick /> elements in MUCs is now discouraged in XEP-0172, however.
2012-08-07 19:33:17 -07:00
Lance Stout
14aa831169
Merge branch 'master' into develop
2012-08-07 16:45:20 -07:00
Lance Stout
295d23ccf3
Fix disco browser example to handle errors.
2012-08-07 16:44:52 -07:00
Lance Stout
75d904ed01
Merge branch 'master' into develop
2012-08-07 01:40:29 -07:00
Lance Stout
aebcf6ff82
Re-add connection delay after exhausting DNS records.
2012-08-07 01:38:15 -07:00
Lance Stout
8c2ece3bca
Ensure self._der_cert exists even if no certs are used.
2012-08-04 21:37:46 -07:00
Lance Stout
80a90a6221
Prevent auto_reconnect interference when disconnecting.
2012-08-04 21:10:45 -07:00
Lance Stout
f81d5e4bd6
Merge branch 'master' into develop
2012-08-02 13:47:37 -07:00
Lance Stout
2324c90232
Ensure default authzids are handled.
2012-08-02 13:47:06 -07:00
Lance Stout
2f65fdbc76
Merge branch 'master' into develop
2012-08-01 23:03:56 -07:00
Lance Stout
59ff08174f
Fix SASL exceptions in Py3
2012-08-01 17:43:38 -07:00
Lance Stout
2f4149c7d0
Merge branch 'master' into develop
2012-08-01 11:11:54 -07:00
Lance Stout
b84e359770
Use the proper mappings for nodeprep.
2012-08-01 11:11:40 -07:00
Lance Stout
fb4275648c
Merge branch 'master' into develop
2012-08-01 09:05:47 -07:00
Lance Stout
475ccfa8dc
Use correct method for getting channel binding.
2012-08-01 09:04:58 -07:00
Lance Stout
267c24c8ef
Fix encoding issue in Python3.
2012-08-01 09:04:41 -07:00
Lance Stout
06a9d9fc30
Merge branch 'master' into develop
...
Conflicts:
sleekxmpp/thirdparty/__init__.py
2012-07-31 21:33:19 -07:00
Lance Stout
1383ca19b5
Fix disco in XEP-0050 plugin.
...
Closes issue #191
2012-07-31 09:20:57 -07:00
Lance Stout
4c3ff2abab
Add XEP-0242 plugin for 2010 Client Compliance
2012-07-30 22:07:49 -07:00
Lance Stout
7c6ef18e4f
Add initial support for XEP-0016 Privacy Lists
2012-07-30 22:07:24 -07:00
Lance Stout
f8856467d5
Fix setup.py after moving SASL stuff.
2012-07-30 22:06:55 -07:00
Lance Stout
3bd84b8d27
Ignore roster updates with unrecognized subscription values.
2012-07-30 19:44:13 -07:00
Lance Stout
bc8b5774ac
Fix logging of SASL errors.
2012-07-30 19:43:49 -07:00
Lance Stout
8009b0485e
Add stream feature for server support of subscription pre-approvals.
2012-07-30 19:30:01 -07:00
Lance Stout
8742a56b3e
Actually commit file of byte and hash utilities.
2012-07-30 19:29:33 -07:00
Lance Stout
a792bcdafe
Ensure that sasl mechs that don't require security options work.
2012-07-30 19:15:10 -07:00
Lance Stout
167d1ce97b
Add fields for setting client cert and key for SASL EXTERNAL.
2012-07-30 19:15:10 -07:00
Lance Stout
695cd95657
Update and integrate Suelta.
2012-07-30 19:15:10 -07:00
Lance Stout
44ce01a70b
Merge branch 'master' into develop
2012-07-30 09:08:58 -07:00
Lance Stout
e4b4c67637
Bump version to 1.1.10
2012-07-30 09:04:15 -07:00
Lance Stout
422e77ae40
Don't wait to retry connection if out of DNS records.
2012-07-29 17:26:04 -07:00
Lance Stout
5ae6c8f8fa
Add support for XEP-0131: Standard Headers and Internet Metadata
2012-07-28 01:06:21 -07:00
Lance Stout
54656b331a
Restrict caps updates to available presences (not subscriptions, etc).
2012-07-27 15:51:35 -07:00
Lance Stout
9047b627a4
Only broadcast vCard hashes for available presences (not subscriptions, etc).
2012-07-27 15:48:15 -07:00
Lance Stout
6645a3be40
Compile JID pattern regex.
2012-07-27 11:24:01 -07:00
Lance Stout
c2189b4ecd
Merge branch 'master' into develop
2012-07-27 10:45:52 -07:00
Jonas Wielicki
e3fab66dfb
Allow tasks to remove themselves during execution
...
The scheduler class is now capable with dealing with tasks which remove
themselves from the scheduler during execution.
Additionally, some optimizations were applied by use of iterators and
some functions better suited for the purpose.
Please peer-review, all tests pass.
2012-07-27 10:45:23 -07:00
Lance Stout
5867f08bf1
Improve docs and fix typo in stringprep profiles.
2012-07-26 23:35:23 -07:00
Lance Stout
a06fa2de67
Enhance plugin config with attribute accessors.
...
This makes updating the config after plugin initialization much easier.
2012-07-26 23:04:16 -07:00
Lance Stout
c9b2cf6043
Merge branch 'master' into develop
2012-07-26 12:24:34 -07:00
Lance Stout
35396d2977
Don't include a 'from' JID when requesting vCards as a client.
2012-07-26 11:55:54 -07:00
Lance Stout
3bff743d9f
Fix logging statement for MUC invitations.
2012-07-26 11:53:07 -07:00
Lance Stout
5a878f829b
Fix error with session binding in components.
2012-07-26 11:50:59 -07:00
Lance Stout
16ec0f151a
Merge branch 'master' into develop
2012-07-25 01:47:26 -07:00
Lance Stout
26dc6e90ea
Add example for setting an avatar.
2012-07-25 01:37:03 -07:00
Lance Stout
94c749fd5a
Fix avatar hash advertising.
2012-07-25 01:36:31 -07:00
Lance Stout
7b80ed0807
Substitute a blank JID for the boundjid in API calls.
2012-07-25 01:33:44 -07:00
Lance Stout
98b7e8b10a
Fix initializing plugins in stanzas with a language set.
2012-07-25 01:33:17 -07:00
Lance Stout
c42f1ad4c7
Merge branch 'master' into develop
2012-07-24 20:01:18 -07:00
Lance Stout
9d8de7fc15
Fix publish vcard avatars, and PEP avatar metadata.
2012-07-24 19:43:39 -07:00
Lance Stout
70883086b7
Modify update_roster() to only change the information provided.
...
Before: Not specifying the groups, name, etc would remove them from the
roster entry.
After: Any parameters not specified are populated with the current
roster entry's values.
2012-07-24 16:48:24 -07:00
Lance Stout
9a08dfc7d4
Add support for using CDATA for escaping.
...
CDATA escaping is disabled by default, but may be enabled by setting:
self.use_cdata = True
Closes issue #114
2012-07-24 03:25:55 -07:00
Lance Stout
3e43b36a9d
Standardize importing of queue class.
...
This will make it easier to enable gevent support.
2012-07-24 02:39:54 -07:00
Lance Stout
352ee2f2fd
Fix JID validation bugs, add lots of tests.
2012-07-24 01:43:20 -07:00
Lance Stout
78aa5c3dfa
Add more validation for 0 length JID components.
2012-07-24 01:43:20 -07:00
Lance Stout
613323b5fb
Finish docstrings for jid.py
2012-07-24 01:43:20 -07:00
Lance Stout
6c4b01db8a
Add plugin for advertising XEP-0106 support.
2012-07-24 01:43:20 -07:00
Lance Stout
d06897a635
Add backwards compatibility shim for the old jid.py location.
2012-07-24 01:43:20 -07:00
Lance Stout
1600bb0aaf
Cleanup and docs.
2012-07-24 01:43:20 -07:00
Lance Stout
b5c9c98a8b
Add JID escaping support.
2012-07-24 01:43:20 -07:00
Lance Stout
e4e18a416f
Add validation for JIDs.
2012-07-24 01:43:20 -07:00
Lance Stout
01cc0e6def
Add 'by' attribute for error stanzas.
2012-07-23 21:48:19 -07:00
Lance Stout
a3ec1af205
Merge branch 'master' into develop
2012-07-23 01:52:55 -07:00
ekini
d571d691a7
old clients still support xep-184/1.0 version
...
Now psi (and probably miranda) correctly receive delivery receipts.
2012-07-23 01:52:45 -07:00
ekini
ea3d39b50e
added xep-0138 support (compression)
2012-07-23 15:39:07 +07:00
Lance Stout
2e580304f9
Merge branch 'master' into develop
2012-07-22 14:02:26 -07:00
Lance Stout
fb221a8dc0
Add XEP-0133 support, which just makes the appropriate XEP-0050 calls.
2012-07-22 13:58:23 -07:00
Lance Stout
459e1ed345
Handle Windows newlines in XEP-0027.
...
Closes issue #184
2012-07-22 12:15:46 -07:00
Lance Stout
6680c244f5
Fix deprecation warning for setting self.resource
2012-07-20 22:04:36 -07:00
Lance Stout
06423964ec
Fix description of XEP-0222 plugin.
2012-07-20 22:03:17 -07:00
Lance Stout
5492e9028d
Merge branch 'master' into develop
2012-07-20 18:15:54 -07:00
Lance Stout
474390fa00
Add example for retrieving avatars.
2012-07-20 18:10:14 -07:00
Lance Stout
81d3723084
Add event for vCard avatar update.
2012-07-20 18:07:27 -07:00
Lance Stout
32e798967e
Fix see-other-host handling if no host is actually given. Also, limit number of consecutive redirection attempts.
2012-07-20 15:28:18 -07:00
Lance Stout
060c9ab679
Merge branch 'master' into develop
2012-07-20 00:25:32 -07:00
Lance Stout
acd9c32a9f
Bump version to 1.1.9
2012-07-20 00:17:53 -07:00
Lance Stout
b8581b0278
Of course Peter goes and changes the XEP title the day after I implement it.
2012-07-19 23:59:35 -07:00
Lance Stout
917faecdcb
Fix issue of roster data being split across multiple rosters.
...
Resolved by always normalizing JIDs to bare form, regardless of if they
are JID objects or strings.
Also simplified related code to prefer use of JID objects instead of
strings so they don't need to be parsed multiple times.
2012-07-19 23:54:18 -07:00
Lance Stout
78f0325398
Merge branch 'master' into develop
2012-07-16 20:13:35 -07:00
Lance Stout
f6edaa56a6
Add plugin for XEP-0191: Simple Communications Blocking
2012-07-16 20:10:14 -07:00
Lance Stout
51fee28bf4
Add a warning log if dnspython is not found for SRV lookup.
...
Closes issue #183
2012-07-16 19:38:50 -07:00
Lance Stout
e8a3e92ceb
Update plugins to use session_bind handler for disco, and use plugin_end
2012-07-10 01:37:44 -07:00
Lance Stout
5df3839b7a
Add method to remove a filter.
2012-07-10 01:37:23 -07:00
Lance Stout
8dcb441f44
Add default plugin session_bind handler.
...
All plugins may now simply define a session_bind method where disco
features and other actions which require the bound JID may be done.
2012-07-10 01:36:21 -07:00
Lance Stout
a347cf625a
Add session_bind_event threading event.
2012-07-10 01:35:57 -07:00
Lance Stout
46f49c7a12
Add method to unregister stream features.
2012-07-10 01:35:25 -07:00
Lance Stout
99701c947e
Prevent None from being added to the schedule from a timing issue.
2012-07-09 22:59:26 -07:00
Lance Stout
1baae1b81e
Fix issues of disco info leaking between entities with the same bare JIDs.
...
To ensure that disco info, or any settings which depend on the bound
JID, are correct, only set such information on or after the
session_bound event has fired.
2012-07-09 22:22:05 -07:00
Lance Stout
7d20f0e9a6
Fix missing import in xep_0256 plugin.
2012-07-09 22:21:40 -07:00
Lance Stout
fbad22a1cd
Merge pull request #181 from whooo/upstream
...
Fix for the RSM iterator
2012-07-09 09:25:09 -07:00
Erik Larsson
5af2f62c04
Make sure that the last RSM stanza is returned from the iterator
2012-07-08 23:27:13 +02:00
Jay Farrimond
4a4a03858e
dereference iq stanza only once for roster processing
2012-07-06 14:03:41 -07:00
Lance Stout
1efe049959
Merge pull request #180 from jay-instaedu/develop
...
dereference iq stanza only once for roster processing
2012-07-06 13:58:46 -07:00
Jay Farrimond
2393148908
dereference iq stanza only once for roster processing
2012-07-06 13:50:15 -07:00
Lance Stout
6819b57353
Handle converting None to byte data (b'').
2012-07-06 11:05:47 -07:00
Jay Farrimond
88b5e60807
only log cert errors if not handled by user
2012-07-05 13:38:26 -07:00
Lance Stout
c7594b3ef0
Merge pull request #179 from jay-instaedu/develop
...
only log cert errors if not handled by user
2012-07-05 13:36:53 -07:00
Jay Farrimond
b210870f48
only log cert errors if not handled by user
2012-07-05 13:30:33 -07:00
Lance Stout
a26a8bd79c
Bump version to 1.1.8
2012-06-30 17:40:11 -07:00
Lance Stout
9307a6915f
Add notes to echo_client.py example on working with Facebook and MSN.
2012-06-23 22:30:24 -07:00
Lance Stout
5d6019a962
Merge branch 'master' into develop
2012-06-22 23:17:15 -07:00
Lance Stout
85ef2d8d0b
Add support for reconnecting based on see-other-host stream errors.
2012-06-22 23:13:16 -07:00
Lance Stout
c2c7cc032b
Fix plugin registration for single file plugins.
2012-06-22 21:58:50 -07:00
Lance Stout
e4911e9391
Add meta plugin for XEP-0302 for the 2012 compliance suite.
...
There are still a few remaining items in the RFCs to add support for,
but the current plugin support matches the advanced client profile.
2012-06-22 21:52:39 -07:00
Lance Stout
b11e1ee92d
Add meta plugin for XEP-0270, 2010 compliance suite.
...
Registering this plugin will load the plugins required for advanced
client compliance status.
2012-06-22 21:26:25 -07:00
Lance Stout
5027d00c10
Change packaging for XEP-0256 to just a single file.
2012-06-22 21:26:01 -07:00
Lance Stout
69ddeceb49
Add support for XEP-0256: Last Activity in Presence
2012-06-22 21:13:30 -07:00
Lance Stout
82698672bb
Add 'thread' and 'parent_thread' interfaces to message stanzas.
...
These values are perisisted across replies.
2012-06-22 20:05:34 -07:00
Lance Stout
9cec284947
Mark presence status as language aware.
2012-06-22 20:05:17 -07:00
Lance Stout
dc501d1902
Mark message body and subject as language aware interfaces.
2012-06-22 19:08:51 -07:00
Lance Stout
100e504b7f
Resolve xml:lang issue with duplicated elements depending on ordering.
2012-06-22 18:19:17 -07:00
Lance Stout
eb5df1aa37
Merge branch 'master' into develop
2012-06-20 23:46:13 -07:00
Lance Stout
8a745c5e81
Bump version to 1.1.7
2012-06-20 23:45:14 -07:00
Lance Stout
bf0a157c5d
Add support for XEP-0221: Data Forms Media Element
2012-06-20 23:38:30 -07:00
Lance Stout
f49818be06
Add support for XEP-0186: Invisible Command
2012-06-20 23:37:39 -07:00
Lance Stout
1ad171dfe5
Fix issue with setting subelements values with default langs.
2012-06-20 23:19:52 -07:00
Lance Stout
2a78570d65
Fix setting IPv6 default configuration option.
2012-06-20 22:21:34 -07:00
Lance Stout
546066d677
Merge branch 'master' into develop
2012-06-20 21:13:06 -07:00
Lance Stout
7a112f2523
Bump version to 1.1.6
2012-06-20 21:08:43 -07:00
Lance Stout
3234596974
Merge branch 'master' into develop
2012-06-20 19:45:11 -07:00
Lance Stout
e86444e5fb
Make the use of IPv6 configurable.
...
Set self.use_ipv6 = False before connecting.
Fixes issue #175
2012-06-20 19:39:24 -07:00
Lance Stout
5820d49cd4
Merge branch 'master' into develop
...
Conflicts:
sleekxmpp/basexmpp.py
2012-06-19 21:50:33 -07:00
Lance Stout
36c11ad9de
Ordering fixes for Python3.3
2012-06-19 18:19:44 -07:00
Lance Stout
019a4b20ae
Fix assigning values to error stanzas.
...
The new data interfaces were deleting the actual error conditions if
they were set afterward with falsy data.
2012-06-19 16:21:34 -07:00
Lance Stout
433ee08687
Allow message and presence stanzas to be embedded as substanzas.
2012-06-19 16:20:54 -07:00
Lance Stout
7858d969d8
Remove usage of deprecated getchildren() method.
2012-06-19 09:47:31 -07:00
Lance Stout
8119551049
Don't compare against booleans using ==.
2012-06-19 01:38:36 -07:00
Lance Stout
061489f03a
Limit except clause to just ImportErrors when loading plugins.
2012-06-19 01:38:12 -07:00
Lance Stout
d92aa05b5c
PEP8 formatting updates.
2012-06-19 01:29:48 -07:00
Lance Stout
f7a74d960e
Simplify send_presence_subscription()
2012-06-19 00:06:31 -07:00
Lance Stout
95a0e51b41
Add example for dealing with GTalk custom domain certificates.
2012-06-19 00:02:36 -07:00
Lance Stout
110e45e187
Add examples for using IBB.
2012-06-19 00:02:17 -07:00
Lance Stout
534aaf2b2a
Properly handle certs with no extensions.
2012-06-19 00:01:02 -07:00
Lance Stout
4cc20fdd05
Use plugin_multi_attrib values to make vcards nicer.
2012-06-18 23:19:38 -07:00
Lance Stout
f3fae192a8
Fix plugin_multi_attrib value for avatar pointers.
2012-06-18 23:05:02 -07:00
Paulo Freitas
7d59a8a0ad
Fixed typo in _handle_get_vcard()
2012-06-18 22:54:30 -07:00
Lance Stout
8da387a38a
Add support for error conditions that include data.
2012-06-18 22:19:04 -07:00
Lance Stout
ff6fc44215
Simplify tracking last sent presence using outgoing filters.
2012-06-18 22:15:21 -07:00
Lance Stout
62391a895a
Update plugin list, fix syntax error.
2012-06-18 22:08:38 -07:00
Lance Stout
9bcdd7d18f
Add initial support for XEPS 222 and 223.
2012-06-18 22:08:38 -07:00
Lance Stout
5c4f7bfe8b
Initial support for XEP-0258
2012-06-18 22:07:39 -07:00
Lance Stout
0b7f134021
Add initial XEP-0084 support.
...
It does not auto-retrieve and store avatars yet, but everything is there
to do so.
2012-06-18 22:07:17 -07:00
Lance Stout
378a42889f
Simplify and update XEP-0033 to latest plugin format.
2012-06-18 22:03:03 -07:00
Lance Stout
f824950552
Enable using xml:lang with normal interfaces.
...
Using the special language value '*' will return a dictionary of all
such elements keyed by language.
>>> msg = Message()
>>> msg['body'] = 'Hi!'
>>> msg['body|sv'] = 'Hej!'
>>> print(msg)
'<message xmlns="jabber:client">
<body>Hi!</body>
<body xml:lang="sv">Hej!</body>
</message>'
>>> print(msg['body|*'])
OrderedDict(
('', 'Hi!'),
('sv', 'Hej!'))
Remaining items:
- Stanza path matching does not support language specifiers for normal
interfaces, only for plugins.
2012-06-18 22:00:33 -07:00
Lance Stout
3d2d11f169
Update stream features stanza to work with new plugin keys.
2012-06-18 22:00:33 -07:00
Lance Stout
181aea737d
Add initial support for xml:lang for streams and stanza plugins.
...
Remaining items are suitable default actions for language supporting
interfaces.
2012-06-18 22:00:33 -07:00
Lance Stout
1ab66e5767
Add example for dealing with GTalk custom domain certificates.
2012-06-15 16:03:38 -07:00
Lance Stout
aab2682f9a
Add examples for using IBB.
2012-06-15 16:03:22 -07:00
Lance Stout
55d332bcc8
Merge branch 'master' into develop
2012-06-15 15:36:30 -07:00
Lance Stout
ee702f4071
Bump version to 1.1.5
2012-06-15 15:36:01 -07:00
Lance Stout
a08c2161a7
Ensure that ssl_invalid_cert returns PEM formatted certifcate data.
2012-06-15 15:29:53 -07:00
Lance Stout
f89df6e70c
Merge branch 'master' into develop
2012-06-13 09:27:47 -07:00
Lance Stout
0e36a01354
Bump version to 1.1.4
2012-06-13 09:17:08 -07:00
Lance Stout
c39ad7dfbb
Prevent duplicate certificate expiration timers.
2012-06-13 09:13:33 -07:00
Lance Stout
b92ae706e9
Fix loading cached disco identity data.
2012-06-13 09:13:13 -07:00
Lance Stout
250d28e870
Properly handle certs with no extensions.
2012-06-11 08:28:02 -07:00
Lance Stout
19f65c8510
Simplify send_presence_subscription.
...
It is technically obsolete now, but remains because it set a default
subscription type of 'subscribe'.
2012-06-10 14:42:54 -07:00
Lance Stout
f70b49882f
Fix XEP-0065 imports and naming for Python3.
2012-06-10 14:15:58 -07:00
Lance Stout
a7b092a305
Fix Python3 exception handling.
...
Fixes issue #173
2012-06-09 15:04:27 -07:00
Lance Stout
daa73a3f3c
Merge branch 'master' into develop
2012-06-09 11:43:06 -07:00
Lance Stout
6997261c6b
Bump version for 1.1.3
2012-06-09 11:32:03 -07:00
Lance Stout
0b51afe87a
Add extra check for the cert in the expiration handler.
2012-06-09 11:05:18 -07:00
Lance Stout
6cfb5cb14c
Add extra check for the cert in the expiration handler.
2012-06-09 11:01:45 -07:00
Lance Stout
8567d6034f
Use False for use_tls for components.
...
A log message is shown for those who try to set it to True.
Fixes issue #171
2012-06-09 11:01:35 -07:00
Lance Stout
e06368f8cd
Default use_tls to False for components.
...
Issue #171
2012-06-09 11:01:21 -07:00
Lance Stout
4b37a4706f
Fix SSL handshake handling when not using legacy SSL.
...
Fixes issue #172
2012-06-09 11:01:11 -07:00
Lance Stout
7b1564947d
Ensure that all SSL cert error handling is overridable using event handlers.
...
Relevant events:
ssl_invalid_cert
ssl_invalid_chain
ssl_expired_cert
2012-06-09 11:00:55 -07:00
Lance Stout
2b298766c9
Use False for use_tls for components.
...
A log message is shown for those who try to set it to True.
Fixes issue #171
2012-06-09 10:48:16 -07:00
Lance Stout
10664d723b
Default use_tls to False for components.
...
Issue #171
2012-06-09 10:43:57 -07:00
Lance Stout
c012208a8f
Merge pull request #170 from SeyZ/develop
...
Added the xep_0065 plugin in the setup.py
2012-06-09 10:37:49 -07:00
Lance Stout
0953896d2d
Fix SSL handshake handling when not using legacy SSL.
...
Fixes issue #172
2012-06-09 10:32:25 -07:00
Sandro Munda
cf9e89d0ae
Added the xep_0065 plugin in the setup.py
2012-06-09 18:45:58 +02:00
Lance Stout
48dd01b0bb
Ensure that all SSL cert error handling is overridable using event handlers.
...
Relevant events:
ssl_invalid_cert
ssl_invalid_chain
ssl_expired_cert
2012-06-08 09:31:44 -07:00
Lance Stout
7247efe055
Merge pull request #169 from SeyZ/develop
...
xep_0065 plugin (Socks5 Bytestreams)
2012-06-07 10:40:22 -07:00
Sandro Munda
8def3758e4
Added the get_socket(sid) method to the xep_0065 plugin to retrieve
...
the socket of the Proxy thread.
2012-06-07 19:36:25 +02:00
Sandro Munda
1851ab6f5f
Added the SID in the socks_recv xmpp event in the xep_0065 plugin.
2012-06-07 19:24:23 +02:00
Sandro Munda
289b052338
Renamed Query to Socks5 in the xep_0065.
...
Renamed the 'q' plugin_attrib of the Socks5 stanza to 'socks'.
2012-06-07 19:14:37 +02:00
Sandro Munda
26147f5ae0
Added a top level field to the xep_0065 class:
...
name = 'xep_0065'
2012-06-07 19:08:20 +02:00
Sandro Munda
ae01f1071a
Fixed the callback names of the xep_0065:
...
In-Band bytestreams -> Socks5 bytestreams
2012-06-07 19:04:24 +02:00
Sandro Munda
dcdf5dcd09
Added the Socksipy module in the thirdparty of SleekXMPP.
...
Updated the LICENSE file with the license of the Socksipy
module (New-BSD).
2012-06-07 19:02:09 +02:00
Sandro Munda
c59a6d0f51
Sent a socks_closed when the socket is closed in the xep_0065 plugin.
2012-06-07 18:38:57 +02:00
Sandro Munda
2cd936318d
Improved the close of the proxy thread (and the socket) in the xep_0065 plugin.
2012-06-07 18:38:57 +02:00
Sandro Munda
2f38857681
Changed the description of the xep_0065 plugin
2012-06-07 18:38:56 +02:00
Sandro Munda
39505ae1ff
The xep_0065 plugin supports now multiple stream (multiple connected
...
sockets).
To send data over a stream, we need to pass the SID in order to
retrieve the good proxy thread (and so, the good socket).
2012-06-07 18:38:56 +02:00
Sandro Munda
44ee0633f2
Renamed the _handle_on_recv to the on_recv method.
...
Renamed requester_thread and target_thread to proxy. The send method is now simpler.
2012-06-07 18:38:56 +02:00
Sandro Munda
b52d2768b0
Added some comments to the get_network_address method
2012-06-07 18:38:56 +02:00
Sandro Munda
cf24b870b1
Registered stanza plugin in the stanza module
2012-06-07 18:38:56 +02:00
Sandro Munda
69cffce7dc
Used the namespace in all stanzas
2012-06-07 18:38:56 +02:00
Sandro Munda
a14979375b
Added a partial support of the XEP 0065 - Socks5 Bytestreams
2012-06-07 18:38:56 +02:00
Sandro Munda
40ef4a16b1
Updated the .gitignore to add .ropeproject/ folder
2012-06-07 18:38:56 +02:00
Lance Stout
f5652a667b
Add 'presence' event, raised for all incoming presence stanzas.
2012-06-06 16:10:25 -07:00
Lance Stout
3b2c865a58
Bump version to 1.1.2
2012-06-06 12:26:15 -07:00
Lance Stout
db0e683d01
Don't request registration forms unless the register event is handled.
...
Some servers end the stream if registration can not be completed
in-band, which means always requesting the form can prevent regular
login.
2012-06-06 12:23:40 -07:00
Lance Stout
e29a9e0394
Bump version for 1.1.1 minor release.
2012-06-04 11:56:53 -07:00
Lance Stout
edf65f4f52
Include the default, unnamed group in self.client_roster.groups()
2012-06-04 11:54:25 -07:00
Lance Stout
98677fd602
Don't add cert expiration timer if no certs are being used.
2012-06-04 11:53:58 -07:00
Lance Stout
61a4f76c8d
Update version and README for 1.1
2012-06-01 14:13:17 -07:00
Lance Stout
856a826eea
Fix syntax error in line continuation.
2012-06-01 14:09:14 -07:00
Lance Stout
387ef513d6
Check that the session is still alive before sending data.
...
Fixes issue #168
2012-06-01 13:50:38 -07:00
Lance Stout
2858dbf57f
Update development version number to prepare for 1.1 release.
2012-05-31 22:07:36 -07:00
Lance Stout
350a2b8bbc
Preemptively mark threads as exited if calling disconnect().
2012-05-31 22:04:45 -07:00
Lance Stout
c9093c9972
Handle not being able to connect using IPv6 if the host does not support it.
2012-05-27 16:33:21 -07:00
Lance Stout
d1ad31696e
Fix X-FACEBOOK-PLATFORM mechanism to work with Python3.
2012-05-25 11:04:46 -07:00
Lance Stout
f49311ef9e
Add better certificate handling.
...
Certificate host names are now matched (using DNS, SRV, XMPPAddr, and
Common Name), along with expiration check.
Scheduled event to reset the stream once the server's cert expires.
Handle invalid cert trust chains gracefully now.
2012-05-22 03:56:06 -07:00
Lance Stout
678e529efc
Remove unused xmlstream test client.
...
It's in the repo history if we need it later.
2012-05-17 22:27:03 -07:00
Lance Stout
6ddb430fef
Spell thirdparty correctly.
2012-05-16 12:00:00 -07:00
Lance Stout
74d1f88146
Prune unused conn_test code.
2012-05-16 11:57:55 -07:00
Lance Stout
7842c55da3
Add auth_success event.
...
The auth_success event is triggered upon successful SASL negotiation.
2012-05-15 14:26:25 -07:00
Lance Stout
f5beac2afa
Use SASLPrepFailure as the exception name instead of UnicodeError.
2012-05-14 23:12:54 -07:00
Lance Stout
8a23f28dfa
Add an exception handler for SASLprep failures.
2012-05-14 22:26:06 -07:00
Lance Stout
9c4886e746
Remove extra connection info so that examples run without modification.
...
GTalk users may still need to change the connect() call if dnspython is
not installed, as usual.
2012-05-14 22:17:39 -07:00
Lance Stout
e0bcd5d722
Add more documentation to the custom stanza examples.
2012-05-14 22:12:52 -07:00
Erick Pérez Castellanos
ba854e7d85
Added custom_stanza example
2012-05-14 21:47:43 -07:00
Lance Stout
4ded34ebc9
Add MUC events for room configuration changes.
...
New events:
groupchat_config_status
muc::[room JID]::config_status
2012-05-14 16:10:22 -07:00
Lance Stout
e918a86028
Make the error message better regarding hanged threads.
...
All event handlers which call disconnect() MUST be registered using
`add_event_handler(..., threaded=True)` in order to prevent temporarily
deadlocking until a timeout occurs.
This is required because disconnect() waits for the main threads to
exit before returning, including the event processing thread. Since
handlers registered without `threaded=True` run in the event processing
thread, the disconnect() call will deadlock.
2012-05-10 10:22:38 -07:00
Lance Stout
24234bf718
Update other examples to use threaded mode for handlers that call disconnect()
2012-05-06 20:19:02 -07:00
Lance Stout
ec99339140
Update send_client.py to call disconnect() from a threaded handler.
2012-05-06 20:07:05 -07:00
Lance Stout
03dedfc871
Windows doesn't support inet_pton.
2012-05-06 12:17:50 -07:00
Lance Stout
9e86a7b357
Tidy up and add tests for multi_attrib plugins.
2012-05-05 14:01:13 -07:00
Lance Stout
6a32417957
Merge pull request #163 from whooo/master
...
factory for recurring substanzas
2012-05-05 11:34:29 -07:00
Lance Stout
97a7be7dfa
Fix loading plugins from custom modules when passing the module itself.
...
Loading plugins from custom modules when passed as a string still works.
2012-05-04 09:51:02 -07:00
Erik Larsson
fa86f956ef
added multifactory and support for it to register_stanza_plugin
2012-04-30 22:19:17 +02:00
Lance Stout
a9acff5294
Collapse initial payload to a single stanza instead of a list if only one stanza is found.
2012-04-30 11:16:10 -07:00
Lance Stout
ad5b61de50
Add full support for initial payloads with adhoc commands, plus test.
2012-04-30 11:07:54 -07:00
Lance Stout
f53b815855
Allow providing initial payload to adhoc commands.
2012-04-30 08:27:10 -07:00
Lance Stout
bf8a9dc20d
Add logging note about potential cause of disconnect() deadlock.
2012-04-29 14:48:14 -07:00
Lance Stout
08716c35fd
Set a timeout when waiting for threads.
...
If calling disconnect() from a non-threaded event handler, deadlock can
happen as disconnect() is waiting for threads to close, but the event
runner is blocked by a handler waiting for disconnect() to return.
It is best to specify threaded=True for event handlers which may call
disconnect().
2012-04-29 14:45:00 -07:00
Lance Stout
fd81bab906
Use the correct 'from' jid when requesting vcards for avatars.
2012-04-29 13:33:53 -07:00
Lance Stout
1cf55c14b0
Don't raise errors when receiving an iq error for vcards.
2012-04-29 13:33:30 -07:00
Lance Stout
8b47159788
Populate the to attribute for message and presence stanzas if the server leaves it blank.
2012-04-26 15:46:18 -07:00
Lance Stout
2eeaf4d80c
Use provided stanza ID.
2012-04-25 13:55:46 -07:00
Lance Stout
4d89d26a1c
Prevent corrupting roster_update event with iq result.
2012-04-25 11:03:33 -07:00
Lance Stout
0cc14cee4d
Ensure that SSL errors are handled in Py3.3
2012-04-24 16:11:49 -07:00
Lance Stout
a20a9c505d
Track threads to ensure all have exited when disconnecting.
2012-04-22 18:13:36 -07:00
Lance Stout
913738444e
Count and track the main threads, so we can delay disconnecting until all have quit.
2012-04-21 10:36:39 -07:00
Lance Stout
8ee30179ea
Add _use_daemons flag to XMLStream to run all threads in daemon mode.
...
This WILL make the Python interpreter produce exceptions on shutdown.
2012-04-20 15:21:31 -07:00
Lance Stout
cb2469322b
Handle using provided weakrefs as stanza parent references.
...
Fixes issue #159
2012-04-14 11:13:38 -04:00
Lance Stout
94aa6673ca
Check for the stop event more aggressively in the send thread.
2012-04-13 08:27:11 -04:00
Lance Stout
4b2b2d16b8
Reset attempted SASL mech set after no suitable mechs are found.
2012-04-11 12:53:22 -04:00
Lance Stout
4cd5d3b3b5
Fix DNS resolution results for IP literals.
2012-04-10 14:08:33 -04:00
Lance Stout
e48e50c6ff
Update setup.py with the latest plugins.
2012-04-09 21:45:19 -04:00
Lance Stout
01189376e2
Add initial support for XEP-0153.
2012-04-09 21:41:59 -04:00
Lance Stout
60195cf2dc
Initial support for XEP-0231.
2012-04-08 23:27:19 -04:00
Lance Stout
15ef273141
Add a prefix to stanza ID values to ensure that they are unique per client.
2012-04-08 21:15:53 -04:00
Lance Stout
eed6da538a
Undo the additional Iq result checks until further testing is done.
...
Revert "Check for Iq results based on both the sender's JID and the ID value."
This reverts commit 9ffde5ab37 .
2012-04-08 16:30:52 -04:00
Lance Stout
d3e8993e22
Fix looking up local and cached vcards.
2012-04-08 16:01:47 -04:00
Lance Stout
8a8926c5e8
Fix errors in caps related to unwrapped disco data and full JIDs.
2012-04-08 16:00:36 -04:00
Lance Stout
f9d0ee824b
Ensure that wrapped disco results retain requesting iq id.
2012-04-08 16:00:07 -04:00
Lance Stout
af099737ab
Ensure that accessing self.api.settings works for plugins.
2012-04-08 15:59:47 -04:00
Lance Stout
9ffde5ab37
Check for Iq results based on both the sender's JID and the ID value.
2012-04-08 15:58:48 -04:00
Lance Stout
272ddf9f01
Add nickname element to the XEP-0054 plugin.
2012-04-07 21:16:36 -04:00
Lance Stout
259c84e99a
Add initial XEP-0054 plugin.
2012-04-07 20:50:02 -04:00
Lance Stout
7391288668
Tidy up roster_received event and callbacks.
2012-04-07 17:30:25 -04:00
Lance Stout
7734aee7ad
Prevent roster_update from firing twice after retrieving the roster.
2012-04-07 17:22:29 -04:00
Lance Stout
9f855b9679
Trigger got_online after resource information has been saved.
2012-04-07 16:23:24 -04:00
Lance Stout
aedbecd673
Correct the statemachine's ensure_any method.
...
It had not been updated to use the new condition instead of the old
threading event.
2012-04-06 17:39:51 -04:00
Lance Stout
83c5a4cd2f
Pass JID objects to API callbacks and not strings.
2012-04-06 15:22:36 -04:00
Lance Stout
9c61c2882f
Add support for XEP-0027
2012-04-06 15:22:23 -04:00
Lance Stout
e0dd9c3618
Simplify registering API handler defaults.
2012-04-06 15:09:26 -04:00
Lance Stout
4921c44d0a
Don't break test plugins that use None instead of a stream object.
2012-04-06 15:09:26 -04:00
Lance Stout
3161f104c7
Update XEP-0012 plugin to use new api.
2012-04-06 15:09:26 -04:00
Lance Stout
898f5f4b51
Allow for registering a handler and setting it as default in one step.
2012-04-06 15:09:26 -04:00
Lance Stout
3ee3fdca91
Fix XEP-0115 with the new API registry.
2012-04-06 15:09:26 -04:00
Lance Stout
488f7ed886
Begin experiment with a centralized API callback registry.
...
The API registry generalizes the node handler system from the xep_0030
plugin so that other plugins can use it.
2012-04-06 15:09:25 -04:00
Lance Stout
51e5aee830
Add default mapping of localhost to ::1 and 127.0.0.1
2012-04-06 15:08:21 -04:00
Lance Stout
af13bea2b8
Fix MUC invite events so that they actually work.
2012-04-03 22:41:37 -07:00
Lance Stout
cdf0b353db
Fix memory leak with adhoc command sessions.
...
Fixes issue #155
2012-04-03 11:02:55 -07:00
Lance Stout
48504ed5e2
Display IPv6 literal addresses in brackets.
2012-04-01 19:32:12 -07:00
Lance Stout
4d4d1e0ee5
Improve connection handling by not delaying until all DNS records are tried.
2012-03-30 10:12:44 -07:00
Lance Stout
c1d36cad46
Add better DNS resolver wrapper.
2012-03-30 10:12:43 -07:00
Lance Stout
aad2eb31fc
Fix typo
2012-03-30 09:01:15 -07:00
Lance Stout
1bd7824f24
Tidy up the state machine and use a threading condition instead of an event.
...
Fixes issue #154
2012-03-28 23:58:38 -07:00
Lance Stout
912463ed6a
Fix sending data after </stream>
...
Clearing the session_started_event before sending </stream> will
pause the send loop so that we don't continue sending data after
the </stream>.
2012-03-28 23:53:55 -07:00
Lance Stout
dda2473d35
Reset stream management state on session_end.
2012-03-27 23:27:24 -07:00
Lance Stout
94923ae898
Improve handling disconnections.
...
- Add option for disconnecting without sending </stream>:
self.disconnect(send_close=False)
- Optionally distinguish between session_end and disconnected based
on if </stream> was sent.
self.end_session_on_disconnect = False
2012-03-27 23:24:42 -07:00
Lance Stout
f1fde07eb9
Add tests for bool_interfaces.
2012-03-27 21:16:53 -07:00
Lance Stout
a1ddd88208
Add support for a new type of stanza interface: bool
...
The set of bool_interfaces provides default behaviour for
checking/setting the presence of empty subelements.
The prime example of this would be:
bool_interfaces = set(['required'])
This would mean that ``stanza['required']`` would return ``True`` for:
<stanza>
<required />
</stanza>
and ``False`` for:
<stanza />
Likewise, assigning ``stanza['required'] = True`` would add an empty
``<required />`` element, and setting it to ``False`` would remove
such an element if it exists.
2012-03-27 21:05:50 -07:00
Lance Stout
ee6a9b981a
Simplify sending whitespace keepalives.
...
Now that we have the send lock, we can use now=True.
2012-03-27 20:53:27 -07:00
Lance Stout
9879c7af59
Make the XEP-0198 ack debug message less confusing.
2012-03-27 20:52:31 -07:00
Lance Stout
fa4c52e499
Correct handling of acks for XEP-0198 under heavy load.
2012-03-21 13:00:43 -07:00
Lance Stout
d5484808a7
Respect reattempt=False setting when reconnecting.
2012-03-21 10:28:26 -07:00
Lance Stout
1c83391948
Merge remote-tracking branch 'hansent/master' into develop
2012-03-20 11:50:57 -07:00
Lance Stout
59d1b8e131
Correct connect() documentation, don't delay attempts if reattempt=False.
...
See issue #152
2012-03-20 09:56:39 -07:00
Lance Stout
859822ff05
Fix unicode issues in test cases for Py3+ introduced by issue #150 .
2012-03-19 14:24:45 -07:00
Lance Stout
3acc7d0914
Merge pull request #150 from correl/rpc_value_fixes
...
Updated XEP-0009 to handle unicode strings
2012-03-19 14:06:36 -07:00
Lance Stout
b077ef9150
Fix error in the registration example.
...
The now=True parameter was not being passed to allow the registration
submission to be submitted while the send queue is paused.
2012-03-19 06:05:15 -07:00
Lance Stout
e2ce5ae222
Add example for using user location.
...
Uses http://freegeoip.com to get an approximate location based
on the machine's IP address.
2012-03-18 23:42:03 -07:00
Lance Stout
73cabcb6ae
Add initial support for XEP-0198 for stream management.
2012-03-18 01:02:19 -07:00
Lance Stout
fbdf2bed49
Add out_sync filter category.
...
Added option to XMLStream.send() to skip applying filters.
Filters in the out_sync group are synced with placing stanza content
either on the wire directly or into the send queue. Because of this,
out_sync filters should not block.
2012-03-18 00:59:45 -07:00
Lance Stout
33d01fb694
Fix requesting receipts on a message that has not been bound to a stream.
2012-03-16 23:42:55 -07:00
Lance Stout
ab2e43d052
Re-add support for special case of 'presence' expiry value.
2012-03-16 23:42:34 -07:00
Lance Stout
0c24fbdb06
Add pubsub examples.
...
Run pubsub commands via pubsub_client, and watch events as they come in
with pubsub_events.
2012-03-16 23:18:59 -07:00
Lance Stout
eb25998e72
Update subscription event expiry value to use time objects.
2012-03-16 23:16:17 -07:00
Lance Stout
eafd2aee93
Add events for configuration and subscription notifications.
...
New events:
pubsub_config
pubsub_subscription
2012-03-16 23:12:38 -07:00
Lance Stout
a6f3d740a2
Fix error when assigning form values that include booleans.
2012-03-16 22:02:21 -07:00
Lance Stout
19a6f61b44
Fix requiring receipt request messages to have ID values.
2012-03-16 22:01:56 -07:00
Lance Stout
58e0f1e6c3
Expand support for XEP-0184.
...
New stanza interfaces:
Adding a message receipt request:
msg['request_receipt'] = True
Adding a message receipt:
msg['receipt'] = '123-24234'
Retrieving the acked message ID:
ack_id = msg['receipt']
print(ack_id)
'123-24234'
New configuration options:
auto_ack:
If True, auto reply to messages that request receipts.
Defaults to True
auto_request:
If True, auto add receipt requests to appropriate outgoing
messages.
Defaults to False
2012-03-16 10:51:25 -07:00
Lance Stout
96ff2d43c0
Explicitly set the desired SASL mech to ANONYMOUS if no username is provided.
2012-03-13 12:24:41 -07:00
Lance Stout
1b00b7e8df
Correct handling SASL auth failures when forcing the use of a specific mechanism.
2012-03-13 11:07:14 -07:00
Lance Stout
7284ceb90c
Move feature_rosterver to new system.
2012-03-12 20:04:11 -07:00
Lance Stout
24ec448b7f
Move feature_starttls to new system.
2012-03-12 19:57:20 -07:00
Lance Stout
ed5a2f400d
Move feature_session to new system.
2012-03-12 19:52:20 -07:00
Lance Stout
9596616b42
Move feature_mechanisms to new system.
2012-03-12 19:52:01 -07:00
Lance Stout
8d38fb511b
Move feature_bind to new system.
2012-03-12 19:49:43 -07:00
Lance Stout
5a2cbbb731
Move XEP-0172 to new system.
2012-03-12 19:32:20 -07:00
Lance Stout
32d6f85649
Move XEP-0118 to the new system.
2012-03-12 19:32:20 -07:00
Lance Stout
a2b47e5749
Move XEP-0108 to new system.
2012-03-12 19:32:20 -07:00
Lance Stout
14d4062f4a
Move XEP-0107 to new system.
2012-03-12 19:32:20 -07:00
Lance Stout
67972c5e84
Move XEP-0080 to the new system.
2012-03-12 19:32:20 -07:00
Lance Stout
3467ac18cc
Move XEP-0163 to new system.
...
Also includes new register_pep() method for doing the necessary stanza
and disco registration, plus pubsub node event mapping.
2012-03-12 19:32:20 -07:00
Lance Stout
cabf27424f
Cleanup plugin import logic.
...
Checking for a 'xep' or 'rfc' attribute is more reliable
for detecting an old style plugin than 'name'.
2012-03-12 19:32:20 -07:00
Lance Stout
162e955bd6
Enable using post_init() to resolve circular dependencies.
...
We really shouldn't have any. However, we may later introduce one
with XEP-0030 and XEP-0059.
2012-03-12 19:32:20 -07:00
Lance Stout
57d761b8a2
Move XEP-0115 to the new system.
2012-03-12 19:32:20 -07:00
Lance Stout
8b2023225c
Remove extra logging statement, add backward compatible references.
2012-03-12 19:32:20 -07:00
Lance Stout
f8f2b541db
Handle loading plugins on demand.
...
Plugins that are referenced as dependencies, but have not been
registered now will be imported. Newer plugins should register
themselves automatically, but older style plugins will be
explicitly registered after import.
2012-03-12 19:32:20 -07:00
Lance Stout
9d645ad5cd
Update the list of all stream feature plugins.
2012-03-12 19:32:20 -07:00
Lance Stout
610d366bdb
Ensure the adhoc command items node exists.
...
If the plugin is loaded and no commands are defined, we can at least
return a proper empty response instead of an item-not-found error.
2012-03-12 19:32:20 -07:00
Lance Stout
64c46562d3
Move XEP-0249 to the new system.
2012-03-12 19:32:20 -07:00
Lance Stout
87d6ade06d
Move XEP-0224 to new system.
2012-03-12 19:32:20 -07:00
Lance Stout
4a009515c1
Move XEP-0203 to new system.
2012-03-12 19:32:20 -07:00
Lance Stout
6497857495
Move XEP-0202 to new system.
2012-03-12 19:32:20 -07:00
Lance Stout
5a324c01de
Move XEP-0199 to new system.
2012-03-12 19:32:19 -07:00
Lance Stout
17279de4a3
Move XEP-0184 to new system.
2012-03-12 19:32:19 -07:00
Lance Stout
34a7a62c35
Move XEP-0128 to new system.
2012-03-12 19:32:19 -07:00
Lance Stout
2305cc61fd
Move XEP-0092 to new system.
2012-03-12 19:32:19 -07:00
Lance Stout
2f677c98f8
Move XEP-0086 to new system.
2012-03-12 19:32:19 -07:00
Lance Stout
3fda053606
Move XEP-0085 to the new system.
...
Optimized handlers so that only one is needed.
2012-03-12 19:32:19 -07:00
Lance Stout
6d855ec06c
Move XEP-0082 to new system.
2012-03-12 19:32:19 -07:00
Lance Stout
23cc62fe7c
Move XEP-0078 to new system.
2012-03-12 19:32:19 -07:00
Lance Stout
26ea67d211
Move XEP-0045 to new system.
...
Still needs updating to the new format.
2012-03-12 19:32:19 -07:00
Lance Stout
d43cd9fa54
Move XEP-0033 to new system.
...
Still needs updating to the new format.
2012-03-12 19:32:19 -07:00
Lance Stout
6f337b5425
Move XEP-0012 to new system.
...
Still needs to update to the current plugin format though.
2012-03-12 19:32:19 -07:00
Lance Stout
d104a5fe75
Move XEP-0009 to new system.
2012-03-12 19:32:19 -07:00
Lance Stout
cdd69c6842
Move XEP-0077 to the new system.
2012-03-12 19:32:19 -07:00
Lance Stout
4a3a9067d4
Move XEP-0066 to new system.
2012-03-12 19:32:19 -07:00
Lance Stout
1aecb2293a
Move XEP-0060 to new system.
2012-03-12 19:32:19 -07:00
Lance Stout
ad8fd91b7a
Move XEP-0050 to new system.
2012-03-12 19:32:19 -07:00
Lance Stout
1f5a3a4445
Move XEP-0047 to new system.
2012-03-12 19:32:19 -07:00
Lance Stout
be363e0b46
Move XEP-0004 to new system.
2012-03-12 19:32:19 -07:00
Lance Stout
a104cd6dae
Tidy up disco plugin.
2012-03-12 19:32:19 -07:00
Lance Stout
e287282782
Moving backwards compatibility shims to __init__ files.
2012-03-12 19:32:07 -07:00
Lance Stout
8b06d10415
Update XEP-0030 and XEP-0059 to new system.
2012-03-12 16:24:18 -07:00
Lance Stout
1a153487c3
Add tests for new plugin manager.
2012-03-12 16:24:18 -07:00
Lance Stout
01b2499915
Introduce new plugin system.
...
The new system is backward compatible and will load older style plugins.
The new plugin framework allows plugins to track their dependencies, and
will auto-enable plugins as needed.
Dependencies are tracked via a class-level set named `dependencies` in
each plugin.
Plugin names are no longer tightly coupled with the plugin class name,
Pso EP8 style class names may be used.
Disabling plugins is now allowed, but ensuring proper cleanup is left to
the plugin implementation.
The use of a `post_init()` method is no longer needed for new style
plugins, but plugins following the old style will still require a
`post_init()` method.
2012-03-12 16:24:18 -07:00
Lance Stout
9f43d31bf5
Add setting for maximum number of reconnection attempts.
...
Setting self.reconnect_max_attempts to a non-None value will limit
the number of times a connection attempt will be made before quiting
and raising a 'connection_failed' event.
2012-03-12 16:19:18 -07:00
Lance Stout
a318beded4
Update plugin list and use correct names.
2012-03-11 16:34:41 -07:00
Lance Stout
5f4b528e6b
Ensure that result stanzas are returned, as expected.
2012-03-11 16:13:19 -07:00
Lance Stout
f759b0ada1
Add support for XEP-0108: User Activity.
2012-03-11 12:37:54 -07:00
Lance Stout
7d89fa27a8
Expand support of XEP-0172 (user nickname) to include PEP.
2012-03-11 00:22:28 -08:00
Lance Stout
10ec92f7c6
Add support for XEP-0107, User Mood.
2012-03-10 23:32:20 -08:00
Lance Stout
58d2f317a0
Fix plugin loading logs for XEP-0118 and XEP-0163.
2012-03-10 23:31:54 -08:00
Lance Stout
34b094561f
Add support for XEP-0080.
2012-03-10 12:54:31 -08:00
Lance Stout
91155444c0
Resolve plugin dependency chains with XEP-0115.
...
The post_init() system can only reliably handle a single layer
of dependencies between plugins, but PEP plugins with XEP-0115
exceed that limit and plugins can be post_init'ed out of order. To
resolve this, we will special case XEP-0115 to be post_init'ed
first until the new plugin system with dependency tracking is
stable.
2012-03-10 12:48:35 -08:00
Lance Stout
7f71ac7e0a
Add user tune feature to disco, not just notifications.
2012-03-10 10:54:24 -08:00
Lance Stout
e5fc59a4c6
Ensure post init works for XEP-0118.
2012-03-10 10:44:53 -08:00
Lance Stout
549a9ab472
Add support for XEP-0118.
...
See examples/user_tune.py for a demonstration using the currently
playing song in iTunes.
2012-03-10 10:30:32 -08:00
Lance Stout
09720dcf42
Fix XEP-0163's updating of caps.
2012-03-10 10:20:06 -08:00
Lance Stout
ec044affd4
Only auto-broadcast caps changes after a session has started.
2012-03-10 10:19:43 -08:00
Lance Stout
af39945009
Add XEP-0163 plugin.
...
This is just a very simple wrapper for XEP-0030, XEP-0115, and XEP-0060
for adding interests to caps information, and publishing.
2012-03-10 09:23:47 -08:00
Lance Stout
78a50d0237
Add support for pubsub notification events.
...
Publishes, retractions, purges, and deletions now raise the events:
- pubsub_publish
- pubsub_retract
- pubsub_purge
- pubsub_delete
In addition, custom events may be raised based on the node that
generated the notification. For example:
xmpp['xep_0060'].map_node_event('http://jabber.org/protocol/tune ',
'user_tune')
will allow for using the events:
- user_tune_publish
- user_tune_retract
- user_tune_purge
- user_tune_delete
2012-03-10 00:07:56 -08:00
Lance Stout
861d279b08
Correct missing pubsub#event stanzas and interfaces.
2012-03-10 00:07:15 -08:00
Lance Stout
eb1a32fc90
Fix setup.py to include the rosterver stream feature plugin.
2012-03-08 16:21:22 -08:00
Lance Stout
4610a6615c
Add tests for roster versioning.
2012-03-07 16:11:59 -08:00
Lance Stout
4cb8a8d389
Modify the cert event to provide the PEM encoded cert in all cases.
2012-03-07 15:03:35 -08:00
Lance Stout
a71823dc04
Add support for roster versioning.
...
This was XEP-0237, but is now part of RFC 6121.
Roster backends should now expose two additional methods:
version(jid):
Return the version of the given JID's roster.
set_version(jid, version):
Update the version of the given JID's roster.
A new state field will be passed to the backend if an item
has been marked for removal. This is 'removed' which will
be set to True.
2012-03-07 14:55:27 -08:00
Lance Stout
d41ada6b66
Cleanup logging when loading a custom plugin.
2012-03-05 11:30:36 -08:00
Lance Stout
fdfe2cd64f
Propagate save option when setting a roster backend.
2012-03-05 11:28:10 -08:00
Lance Stout
7b51c6f5cc
Save existing roster content when setting a new backend.
2012-03-05 11:12:13 -08:00
Lance Stout
be7f07ad12
Prevent excess loading from the roster db.
...
Fixes issue #148
2012-03-05 11:11:35 -08:00
Lance Stout
830db11b41
Ensure that roster nodes aren't empty strings.
...
This would happen when receiving presence without a 'to' field, which
happens when receiving presence from other resources for the same account.
2012-03-05 11:08:57 -08:00
Lance Stout
53bcd33e1d
Let disconnect() wait for its lock for a few seconds.
...
This should eliminate most debug statements about not being
able to acquire a lock during disconnect.
2012-02-22 07:57:13 -08:00
Lance Stout
e3d596c9fa
Update XEP-0085 plugin to work with both ElementTree and cElementTree
...
Each state element must have its own stanza class now. A stanza class
with an empty name field causes errors in ElementTree, even though
it works fine with cElementTree.
2012-02-19 20:28:31 -08:00
Lance Stout
ecd6ad6930
Fix incompatibility with clearing an element between ElementTree and cElementTree
2012-02-19 20:27:53 -08:00
Lance Stout
c36073b40e
xml.etree.ElementTree raises ExpatError instead of SyntaxError or ParseError.
2012-02-19 20:27:19 -08:00
Lance Stout
afe0d16797
Centralize references to ET to make switching implementations easier.
2012-02-19 20:26:40 -08:00
Lance Stout
977fcc0632
Fix instances of using undefined variables.
2012-02-18 11:56:10 -08:00
Lance Stout
94b57d232d
More pyflakes cleanup.
2012-02-18 11:44:05 -08:00
Lance Stout
7cdedb2ec0
More import cleanup based on pyflakes.
2012-02-18 11:40:34 -08:00
Lance Stout
676324805e
Use JID objects when dealing with roster items.
2012-02-18 11:39:47 -08:00
Lance Stout
7d74a7b027
More extraneous import cleanup.
2012-02-17 14:59:56 -08:00
Lance Stout
9d5eb864d1
More import cleanups based on pyflakes results.
2012-02-17 14:41:31 -08:00
Lance Stout
86a482e032
Fix pyflakes complaints for XEP-0115 plugin.
2012-02-17 11:40:51 -08:00
Lance Stout
c43c7be86c
Make last_xml usage a little more explict.
2012-02-17 11:40:07 -08:00
Lance Stout
c58462f154
Fix undeclared variable usage for reconnect.
2012-02-17 11:12:48 -08:00
Correl Roush
31d3e3b2b6
Updated XEP-0009 to handle unicode strings
2012-02-17 12:24:44 -05:00
Lance Stout
fb2582e53b
Fix fixing remove_stanza()
...
Fixes issue #146
2012-02-16 07:25:44 -08:00
Lance Stout
d807613117
Don't retrieve cert until a connection is made.
2012-02-16 07:02:56 -08:00
Lance Stout
6d922d00c3
Fix remove_stanza().
...
Fixes issue #146
2012-02-16 07:02:19 -08:00
Lance Stout
61ea84093b
Don't shutdown completely after handling SyntaxError.
...
The ``shutdown = True`` line was preventing the stream from reconnecting
after handling the error.
Fixes issues #101 , #145
2012-02-10 19:28:12 -08:00
Lance Stout
e76d6a481f
Fix undefined variable references when DNS timeouts.
2012-02-10 19:20:17 -08:00
Lance Stout
c1357717d9
Use '=' as base64 value for empty string SASL results.
2012-02-09 22:01:11 -08:00
Lance Stout
ca5145c210
Fix IPv6 query logging.
2012-02-10 06:46:51 +01:00
Lance Stout
1a272fd276
Add support for querying and connecting to IPv6 addresses.
...
Tested using servers provided by Florian Jensen (flosoft.biz)
during the 2012 FOSDEM XMPP Summit.
Fixes issue #94 .
2012-02-09 21:28:28 -08:00
Lance Stout
952260b423
Add ssl_cert event (direct).
...
The payload is a dictionary of parsed cert data, as provided by
Python's getpeercert() socket method. It unfortunately does not
provide much detail beyond basic info.
2012-02-04 14:16:37 +01:00
Lance Stout
caa967105c
Add more XEP-0047 tests.
2012-02-03 16:29:38 +01:00
Lance Stout
d565e4be20
Fix XEP-0184 imports
2012-02-03 16:08:27 +01:00
Lance Stout
85dd005abc
Fix infinite callback loop.
2012-02-03 16:03:46 +01:00
Lance Stout
021c57205f
Don't assume data is ASCII in saslprep.
2012-02-03 16:01:54 +01:00
Lance Stout
261a501afc
Merge remote-tracking branch 'whooo/master' into develop
2012-02-03 15:23:01 +01:00
Erik Larsson
9a38a101d2
Added fritzy to the copyright for xep_0184
2012-02-03 15:17:01 +01:00
Lance Stout
4665c5cf1a
Fix data stanza based on test results.
2012-02-02 19:19:50 +01:00
Lance Stout
bd52a5e6c1
Initial, mostly working XEP-0047 plugin.
...
This is inspired by the version from macdiesel and tomstrummer, but
their version was heavily linked with XEP-0096 and focused solely
on file transfer. This version is a more generic implementation.
2012-02-02 18:27:23 +01:00
Lance Stout
f98e5a03de
Fix typo s/is_set/is_set()
2012-02-02 18:14:48 +01:00
Erik Larsson
2217c69757
Added plugin for XEP-0184
2012-02-02 14:29:27 +01:00
Thomas Hansen
5a4df56836
examples: fix rpc examples. __init__ method was wrongly named "__init" causing proxy and handler class to not be initialized.
2012-01-31 12:38:41 -06:00
Lance Stout
3ab7c8bcc3
Make socket_error run as a direct event to ensure that it is handled.
...
Socket errors that occur before stream processing begins could not be
handled as the event loop would not be running yet.
Resolves issue #142
2012-01-28 18:54:46 -08:00
Lance Stout
8f25acd0f3
Bump version number in develop branch to 1.0.1dev.
2012-01-25 20:44:41 -08:00
Lance Stout
999f1932cc
Merge pull request #138 from rhcarvalho/patch-2
...
Set default argument value.
2012-01-25 20:41:45 -08:00
Lance Stout
69940a8ab9
Fix a few typos.
2012-01-24 00:07:31 -08:00
Lance Stout
13158e3cdf
Revert the X-GOOGLE-TOKEN mech to not perform HTTP requests.
...
Added new example for how to retrieve a Google token, following
the best case, non-browser, workflow. Other thirdparty auth
mechs (Facebook, MSN) follow a similar pattern of using an
access token.
2012-01-23 23:58:40 -08:00
Lance Stout
f06589c913
Merge pull request #140 from rhcarvalho/patch-3
...
Fix ValueError when line has more than one '='.
2012-01-23 10:53:19 -08:00
Rodolfo Carvalho
2735b680b9
Fix ValueError when line has more than one '='.
2012-01-22 18:32:32 -02:00
Rodolfo Henrique Carvalho
5f1d4ce433
Set default argument value.
...
Without this features/feature_mechanisms/mechanisms.py throws an error when calling the method `process' without arguments on this mechanism.
2012-01-22 01:53:07 -02:00
Lance Stout
25f87607aa
Add support for X-GOOGLE-TOKEN.
...
This is mainly just useful for authenticating without using TLS.
If an access token is not provided, an attempt will be made to
retrieve one from Google.
2012-01-21 00:44:03 -08:00
Lance Stout
f81fb6af44
Require explicitly setting access_token value.
...
Silently substituting the password field was nice, but for mechs
that can use either the password or an access token, it makes
things very difficult. This really only affects MSN clients since
Facebook clients should already be setting the api key.
2012-01-21 00:19:59 -08:00
Lance Stout
bb0a5186d6
Handle SASLCancelled and SASLError exceptions.
2012-01-21 00:19:08 -08:00
Lance Stout
baad907422
Add missing SASL <abort /> stanza
2012-01-21 00:17:49 -08:00
Lance Stout
1022fc0060
Make things work with Python3's byte semantics.
2012-01-20 02:27:30 -08:00
Lance Stout
3a22d798f8
Allow attempting multiple SASL mechs during a single stream.
...
Instead of disconnecting when the first chosen mech fails, we will
try all of them once.
2012-01-20 02:01:08 -08:00
Lance Stout
71ea430c62
Add support for X-FACEBOOK-PLATFORM SASL mechanism.
...
This requires an extra credential for SASL authentication:
xmpp = ClientXMPP('user@chat.facebook.com ', '...access_token...')
xmpp.credentials['api_key'] = '...api_key...'
2012-01-20 01:24:05 -08:00
Lance Stout
0d2125e737
Add an extra config dict to store SASL credentials.
...
We'll need extra things beyond just a password, such as api_key.
2012-01-20 01:08:25 -08:00
Lance Stout
02f4006153
Add basic start for a client side XEP-0077 plugin.
2012-01-19 02:37:36 -08:00
Lance Stout
b25668b5b7
Fix detecting end of result set paging.
2012-01-18 19:57:49 -08:00
Lance Stout
bb3080e829
Merge branch 'docs' into develop
...
Conflicts:
docs/index.rst
2012-01-18 15:36:18 -08:00
Lance Stout
bd85e95398
Gah, too many branch conflicts.
2012-01-18 15:34:49 -08:00
Lance Stout
22cc194ed8
Merge branch 'docs' of github.com:fritzy/SleekXMPP into docs
...
Conflicts:
docs/index.rst
2012-01-18 15:34:12 -08:00
Lance Stout
79b71228c1
Fix some more merge conflicts.
2012-01-18 15:31:45 -08:00
Lance Stout
fd515d807c
Add example of accessing plugins to the README.
2012-01-18 15:22:19 -08:00
Lance Stout
4f4c121d9b
Fix merge errors and bot example.
2012-01-18 15:16:56 -08:00
Lance Stout
72e1ab47fc
Merge branch 'docs' into develop
...
Conflicts:
docs/_static/haiku.css
docs/_static/header.png
docs/conf.py
docs/getting_started/muc.rst
docs/index.rst
examples/muc.py
2012-01-18 15:04:33 -08:00
Lance Stout
3575084640
Update home page to include bot example, and example of using a plugin.
2012-01-18 14:24:23 -08:00
Lance Stout
1e01903072
Revert "Remove stream feature handlers on session_start."
...
This reverts commit 4274f49ada .
The SASL mech was choking on this, so let's send it back for some
more refining.
2012-01-18 11:51:00 -08:00
Lance Stout
3672856ab4
Fix roster key issue for non-JID keys.
2012-01-17 23:10:14 -08:00
Lance Stout
86d8736dcc
Hash JIDs based on full JID string.
...
This makes JID objects equivalent to strings in dictionaries, etc.
>>> j = JID('foo@example.com ')
>>> s = 'foo@example.com '
>>> d = {j: 'yay'}
>>> d[j]
'yay'
>>> d[s]
'yay'
>>> d[s] = 'yay!!'
>>> d[j]
'yay!!'
2012-01-17 23:03:48 -08:00
Lance Stout
2923f56561
Pre-parse StanzaPath paths to speed up matching.
...
The parsing and namespace cleaning isn't terribly expensive, but it does
add up. It was adding an extra 5sec when processing 100,000 basic
message stanzas.
2012-01-17 22:28:44 -08:00
Lance Stout
4274f49ada
Remove stream feature handlers on session_start.
...
Based on profiling, using around 35 stream handlers quarters the number
of basic message stanzas that can be processed in a second, in
comparison to only using the bare minimum of four handlers.
To help, we can drop handlers for stream features once the session
has started. So that we can re-enable these handlers when a stream
must restart, the 'stream_start' event has been added which fires
whenever a stream header is received.
The 'stream_start' event is a more generic replacement for the
existing start_stream_handler() method.
2012-01-17 22:14:24 -08:00
Lance Stout
a4b27ff031
Merge pull request #137 from rhcarvalho/patch-1
...
Use jid.bare as a key instead of a JID instance.
2012-01-16 11:44:42 -08:00
Rodolfo Henrique Carvalho
f49b6fa79f
Use jid.bare as a key instead of a JID instance.
2012-01-16 16:59:45 -02:00
Lance Stout
7b854a190e
Tidy up and update the plugin __init__ file.
2012-01-15 22:51:59 -08:00
Lance Stout
947d1ffbb3
Fix xep_0030 reference warning.
2012-01-14 17:12:39 -08:00
Lance Stout
de35848500
Don't serialize XML unless we need to.
2012-01-14 10:54:48 -08:00
Lance Stout
1ae219025a
Don't dump exception logs for XML stream parsing errors.
...
The exceptions are handled, so we don't need to clutter the output logs.
2012-01-12 22:26:15 -08:00
Lance Stout
e8b2dd6698
Update Roster stanza to use RosterItem substanzas.
...
get_roster() now returns the Iq result stanza instead of True (stanzas
also evaluate to True).
2012-01-12 17:21:43 -08:00
Lance Stout
c0074f95b1
update_caps() can now do presence broadcasting.
...
As part of adding this feature:
- fixed bug in update_caps() not assigning verstrings
- fixed xep_0004 typo
- can now use None as a roster key which will map to boundjid.bare
- fixed using JID objects in disco node handlers
- fixed failing test related to get_roster
Several of these bugs I've fixed before, so I either didn't push them
earlier, or I clobbered something when merging. *shrug*
2012-01-11 16:39:55 -08:00
Lance Stout
a79ce1c35e
Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop
2012-01-10 20:05:25 -08:00
Lance Stout
1eb69f7075
Make the roster easier to inspect.
...
The __repr__ version now looks like a regular dictionary.
2012-01-10 20:03:22 -08:00
Lance Stout
a86935a42f
Make get_roster(block=False) work properly.
...
Fixes issue #136
2012-01-10 19:57:38 -08:00
Lance Stout
1674bd753e
Fix setup.py Unicode issue with README.rst
...
Fixes issue #135
2012-01-09 15:38:19 -08:00
Lance Stout
6b9a55e62d
Sync with Suelta.
2012-01-07 00:19:08 -05:00
Lance Stout
c578ddeb1a
Add support for MSN with X-MESSENGER-OAUTH2 SASL support.
...
NOTE: This requires already having the access token. It does NOT
perform any OAuth requests.
2012-01-06 23:31:58 -05:00
Lance Stout
8ef7188dae
Fix client_roster when the bare JID changes after binding.
...
Adds session_bind event.
2012-01-06 23:30:14 -05:00
Lance Stout
738ec92b8e
Fix a few typos.
2012-01-05 13:11:42 -05:00
Lance Stout
be9e26b4a3
Apply Te-Je's MUC guide patch.
2012-01-05 13:09:20 -05:00
Lance Stout
b345c227b2
More &yet branding
2012-01-05 13:07:44 -05:00
Lance Stout
c7e95c8dec
Add &yet contact info
2012-01-05 12:28:30 -05:00
Lance Stout
3a4e3d3f51
Update doc settings to new theme, add examples, use 1.0
2012-01-05 12:13:06 -05:00
Lance Stout
8fd2efa2fa
Merge branch 'develop-1.1' into develop
2012-01-05 11:33:47 -05:00
Lance Stout
97378998a5
Break the docs out into their own branch.
2012-01-05 11:31:54 -05:00
Lance Stout
79f1aa0e1b
Update version and README for 1.0 release.
2012-01-03 17:04:15 -05:00
Lance Stout
fb5a6a7d71
Merge pull request #132 from rhcarvalho/master
...
Fix a typo in several files.
2012-01-02 13:10:46 -08:00
Rodolfo Carvalho
7d1c5f4a2b
Fix a typo in several files.
...
This fixes several instances of "intial" for "initial".
2012-01-02 18:59:39 -02:00
Lance Stout
6b6995bb0b
Merge branch 'develop' into develop-1.1
2011-12-31 21:17:01 -05:00
Lance Stout
27c658922e
Fix handing caps in Python3, allow update_caps() call before process()
2011-12-31 21:15:40 -05:00
Lance Stout
1b0fd76b45
Merge pull request #131 from rhcarvalho/master
...
Small changes to the examples
2011-12-31 17:27:57 -08:00
Lance Stout
35954cdc90
Fix a few holes in caps.
...
Protip: Don't test using a custom disco handler that always returns the
same feature set :p
2011-12-31 19:18:00 -05:00
Rodolfo Carvalho
46e93bea09
Remove unused import.
...
I forgot about this one before!
2011-12-31 20:14:24 -02:00
Rodolfo Carvalho
cbc6a0296b
Ask interactively for missing command line arguments.
...
Instead of complaining that the arguments were not given, ask interactively for input.
This example was the only one to behave differently from the others.
2011-12-31 19:54:14 -02:00
Rodolfo Carvalho
cc63bef179
Remove unused imports in the examples.
2011-12-31 19:50:53 -02:00
Rodolfo Carvalho
cbcfa156c4
Add missing import.
2011-12-31 19:48:03 -02:00
Lance Stout
fa912aeb84
Merge branch 'develop' into develop-1.1
2011-12-31 12:34:17 -05:00
Lance Stout
4a12e1059a
Add proxy docs.
2011-12-31 12:33:32 -05:00
Lance Stout
9a5e2ae768
Merge branch 'develop' into develop-1.1
2011-12-31 02:16:08 -05:00
Lance Stout
f9cd051209
Add echo component briefing.
2011-12-31 02:00:54 -05:00
Lance Stout
e0545bf0bc
Merge branch 'develop' into develop-1.1
2011-12-31 01:29:12 -05:00
Lance Stout
03bc38f7e3
Add docs on using Iq stanzas.
2011-12-31 01:28:41 -05:00
Lance Stout
4e23a4e08e
Merge pull request #130 from rhcarvalho/master
...
Some small fixes
2011-12-30 20:14:54 -08:00
Lance Stout
d817d64c65
Enable caps stream feature.
2011-12-30 22:34:57 -05:00
Lance Stout
8a29ec67ac
Add XEP-0115 plugin.
...
Finally
2011-12-30 21:45:25 -05:00
Lance Stout
6722b0224a
Add option to disable condensing and converting form values.
...
XEP-0115 needs to use the raw XML character data.
2011-12-30 21:43:39 -05:00
Lance Stout
8eb225bdec
Add option for disabling identity and feature deduplication.
...
XEP-0115 requires detecting duplicates, so we can't always silently
ignore them.
2011-12-30 20:53:18 -05:00
Lance Stout
a7df76a275
Add 'supports' and 'has_identity' node handlers.
2011-12-30 20:52:44 -05:00
Lance Stout
efae8f3369
Automatically use local disco based on the JID.
2011-12-30 20:51:41 -05:00
Lance Stout
a11e6c0b77
Be more lenient on required arguments to disco node handlers.
2011-12-30 20:51:02 -05:00
Lance Stout
1bb0b38868
Make the disco logs nicer.
2011-12-30 20:50:15 -05:00
Rodolfo Carvalho
8cafa8578f
Update examples to use the block'' argument instead of the deprecated threaded''.
2011-12-30 17:25:03 -02:00
Rodolfo Carvalho
b74ea47650
Fix docstring of a method of Message stanzas.
2011-12-30 17:08:32 -02:00
Rodolfo Carvalho
2dc230a68b
Replace pydns with dnspython in the comments of the examples.
2011-12-30 00:08:05 -02:00
Lance Stout
4df1641689
Add set_info disco handler.
2011-12-28 11:46:13 -05:00
Lance Stout
5ef0b96d5c
Fix caching for clients.
2011-12-28 11:37:05 -05:00
Lance Stout
d979b5f2b9
Add caching support to xep_0030.
...
New plugin configuration options:
use_cache - Enable caching disco info results. Defaults to True
wrap_results - Always return disco results in an Iq stanza. Defaults
to False
Node handler changes:
Handlers now take four arguments: jid, node, ifrom, data
Most older style handlers will still work, depending on if they
raise a TypeError for incorrect number of arguments. Handlers that
used *args may not work.
New get_info options:
cached - Passing cached=True to get_info() will attempt to load
results from the cache. If nothing is found, a query
will be sent as normal. If set to False, the cache
will be skipped, even if it contains results.
New method:
supports() - Given a JID/node pair and a feature, return True
if the feature is supported, False if not, and
None if there was a timeout. By default, the search
will use the cache.
2011-12-28 10:16:31 -05:00
Lance Stout
1a61bdb302
Ensure that stanza plugins work as expected if the XML is appended.
2011-12-28 09:53:22 -05:00
Lance Stout
e8545dd2bc
Merge branch 'develop-1.1' of github.com:fritzy/SleekXMPP into develop-1.1
2011-12-27 18:05:55 -05:00
Lance Stout
2f2ebb37e4
Merge branch 'develop' into develop-1.1
2011-12-27 18:05:42 -05:00
Lance Stout
522f0dac16
Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop
2011-12-27 18:03:08 -05:00
Lance Stout
cd5ae944ec
Merge pull request #128 from correl/rpc_value_conversion_fix
...
XEP-0009 tests updated for Python3
2011-12-27 15:03:01 -08:00
Lance Stout
42a86fe0d4
Disconnect when a SyntaxError is found.
...
This should resolve issue #102
2011-12-27 18:01:26 -05:00
Correl Roush
e928b9c434
XEP-0009: Updated tests to work in python 3
2011-12-20 21:19:51 -05:00
Lance Stout
fb55d9e9d1
Add comma to fix pubsub error conditions.
...
Fixes issue #127
2011-12-20 12:30:35 -05:00
Lance Stout
74e7e5a291
Merge pull request #125 from correl/rpc_value_conversion_fix
...
XEP-0009 XML-RPC value conversion fixes and unit tests
2011-12-20 09:29:03 -08:00
Correl Roush
6c58b8cc4b
XEP-0009: Updated RPC value conversion code
...
Updated the XML-RPC value conversion to correctly apply namespaces, and
fixed an error uncovered by the tests in the XML -> Python conversion of
dateTime values.
2011-12-20 02:03:06 -05:00
Correl Roush
2b3d11a7a5
XEP-0009: Added value conversion unit tests
...
Added tests for bidirectional conversion of all XML-RPC data types
2011-12-20 02:01:34 -05:00
Correl Roush
9950208d06
Fixes Issue #123 : Corrected boolean xml to python conversion
2011-12-16 17:41:16 +00:00
Lance Stout
a67e16d1b7
Merge pull request #122 from correl/acl_check_fix
...
XEP-0009: ACL.check fix
2011-12-15 16:14:29 -08:00
Correl Roush
c98a22e065
Fixed Issue 93: ACL.check jid parameter should be a string value
2011-12-15 21:58:33 +00:00
Lance Stout
8f9d1bcfe0
Merge branch 'develop-1.1' of github.com:fritzy/SleekXMPP into develop-1.1
2011-12-15 12:04:14 -08:00
Lance Stout
a7a2fd1d5b
Merge branch 'develop' into develop-1.1
2011-12-15 12:03:52 -08:00
Lance Stout
d496417deb
Allow XEP-0082 to return datetime objects without having to format and reparse.
2011-12-15 12:02:08 -08:00
Lance Stout
f6e30edbc4
Log received data AFTER filtering.
...
This allows applications to filter out sensitive information, such
as passwords, so that it won't appear in the logs.
It does mean that the debug logs will not show the actual received
data, and there will be no indication of tampering, unless the
filter author explicitly logs and notes that a change was made.
2011-12-14 21:14:27 -08:00
Lance Stout
45ed68006f
Add tests for filters.
2011-12-13 20:05:31 -08:00
Lance Stout
dcb0d8b00e
Merge branch 'develop' into develop-1.1
2011-12-13 09:38:27 -08:00
Lance Stout
116bb6e1b9
Use OrderedDicts instead of regular dictionaries when returning values from forms.
2011-12-13 09:00:45 -08:00
Lance Stout
9c6dde5d22
Ensure that item fields have the proper type.
...
The item fields were not setting their type based on the reported
field's type attribute, so values were not being encoded properly.
Fixes issue #121
2011-12-13 08:59:39 -08:00
Lance Stout
cb635dcd5a
Add parameter docs for add_filter.
2011-12-12 22:37:19 -08:00
Lance Stout
eff3330e75
Add support for incoming/outgoing filters.
...
A filter accepts and returns a stanza, but potentially modified.
To prevent sending/receiving a stanza, a filter may return None.
Incoming:
self.add_filter('in', in_filter)
Outgoing:
self.add_filter('out', out_filter)
Filters are applied in the order thay are added. However, you may
add an order parameter, which is the place in the list to insert the
filter:
self.add_filter('in', in_filter, order=0)
2011-12-12 22:17:07 -08:00
Lance Stout
fc8a13df5a
Allow disco info/items handlers to return full Iq stanzas.
...
Only allowing handlers to return a DiscoInfo/DiscoItem stanza works
for the majority of cases, but does not allow for the addition of
an RSM stanza, or other extensions.
An Iq stanza returned by a handler must already be configured as
a reply.
2011-12-12 19:38:32 -08:00
Lance Stout
85e9042db6
Pass the Iq stanza to disco item handlers.
2011-12-12 16:34:24 -08:00
Lance Stout
62e6d6fb4c
Fix iterable substanzas when added as normal plugin.
...
If an iterable plugin was an enabled, it wasn't added to
the iterables list.
2011-12-11 17:04:58 -08:00
Lance Stout
16c72e8efd
Use UTC for xep_0082.date.
2011-12-09 23:59:33 -08:00
Lance Stout
efe1b9f5a9
Allow sending stanzas on session_end.
...
May set self.disconnect_wait=True so that all disconnect
calls wait for the send queue to empty, unless explicitly
overridden with wait=False.
The session_end now fires before closing the socket so
that final stanzas may be sent, such as unavailable presences
for components.
2011-12-09 23:56:39 -08:00
Lance Stout
65dbddb6b6
Fix logging when loading plugins.
2011-12-09 20:57:08 -08:00
Lance Stout
2a67a31120
Prevent hang when terminating during delayed connection.
2011-12-07 22:16:58 -08:00
Lance Stout
a720c3348b
Updated last bit of core files to use new API format.
2011-12-05 20:37:47 -08:00
Lance Stout
79ac60b6e8
Fix example boilerplate code syntax.
2011-12-05 08:57:57 -08:00
Lance Stout
e01c2d222a
More doc updates
2011-12-05 08:55:05 -08:00
Lance Stout
8922e2050a
Update the API docs for XMLStream
2011-12-04 20:35:17 -08:00
Lance Stout
a85891c611
Add API docs for the scheduler
2011-12-04 16:43:05 -08:00
Lance Stout
2586fdffda
Update api docs for handlers and matchers
2011-12-04 16:26:14 -08:00
Lance Stout
c9dc9ec11e
Update supported XEP list
2011-12-04 15:39:49 -08:00
Lance Stout
b9332142c9
Update api docs for JID
2011-12-04 13:42:46 -08:00
Lance Stout
b7b53362e1
Ensure that adhoc command clients have form plugin registered.
...
The form plugin was being registered on first use for providers,
but not for clients receiving the form.
NOTE: Use of non-form payloads will have this issue - adhoc command
clients will need to have an expectation beforehand of what
the command payload will be to properly load stanza plugins.
2011-12-04 01:24:35 -08:00
Lance Stout
68cf66a5fe
Ensure that saving a roster item includes the correct subscription value.
...
Fixes issue #118
2011-11-28 15:00:35 -08:00
Florent Le Coz
4eb7eeb40f
Send the encoded data (bytes) and not the str, on the socket.
2011-11-25 01:45:43 +08:00
Lance Stout
a1d64fa215
Experimental support for handling SSL write errors.
2011-11-23 23:59:05 -08:00
Lance Stout
5f44c0e678
Add docs for filesocket
2011-11-22 16:33:38 -08:00
Lance Stout
b87c4d786d
Update tostring docs, plus more doc cleanup
2011-11-22 16:25:33 -08:00
Lance Stout
329b0df3f6
Some more docs house cleaning
2011-11-22 15:25:24 -08:00
Lance Stout
6906c15e8e
Update docs for tostring
2011-11-22 15:25:02 -08:00
Lance Stout
ff5421cefc
Moar docs!
2011-11-21 23:28:19 -08:00
Lance Stout
4498e992a2
Add more stanzabase docs
2011-11-21 23:17:39 -08:00
Lance Stout
2d610dfdc8
Fix stream handler test for multiple handlers to exist properly.
2011-11-21 22:03:43 -08:00
Lance Stout
2b0a05ee32
Update stanzabase docs
2011-11-21 21:51:19 -08:00
Lance Stout
bc2d0ee9a8
Update docs index
2011-11-20 17:29:54 -08:00
Lance Stout
862a2a1440
Ensure that reconnection happens properly after connection loss.
...
Calling reconnect() simultaneously from multiple threads (like when
using XEP-0199 keepalive) could break because the connection state
can transition and break the state expectations in one of the
reconnect() calls.
2011-11-20 12:18:37 -08:00
Lance Stout
fba60ffff1
Convert daemon threads back into normal threads.
...
This may need to be reverted if CTRL-C handling breaks, but everything
works fine so far in testing.
Resolves issue #95 .
2011-11-20 12:17:35 -08:00
Lance Stout
d1a945a305
Tidy up logging some more
2011-11-19 19:18:43 -08:00
Lance Stout
685b9ab102
Fix logging exceptions from formatting issues.
2011-11-19 19:08:27 -08:00
Lance Stout
24f27c0fe3
Pass generic connection errors to XMLStream.exception()
2011-11-19 19:01:07 -08:00
Lance Stout
3019c82d8a
Use a list comprehension instead of filter() to work with Python3.
2011-11-19 18:49:18 -08:00
Lance Stout
f9d0b55ca3
Add unit test for copying stanzas when passed to events.
2011-11-19 18:43:38 -08:00
Lance Stout
b54cc97e4c
Merge remote-tracking branch 'vijayp/master' into HEAD
...
Conflicts:
examples/ping.py
sleekxmpp/basexmpp.py
sleekxmpp/clientxmpp.py
sleekxmpp/features/feature_bind/bind.py
sleekxmpp/features/feature_mechanisms/mechanisms.py
sleekxmpp/plugins/gmail_notify.py
sleekxmpp/plugins/jobs.py
sleekxmpp/plugins/xep_0009/remote.py
sleekxmpp/plugins/xep_0009/rpc.py
sleekxmpp/plugins/xep_0012.py
sleekxmpp/plugins/xep_0045.py
sleekxmpp/plugins/xep_0050/adhoc.py
sleekxmpp/plugins/xep_0078/legacyauth.py
sleekxmpp/plugins/xep_0085/chat_states.py
sleekxmpp/plugins/xep_0199/ping.py
sleekxmpp/plugins/xep_0224/attention.py
sleekxmpp/xmlstream/handler/waiter.py
sleekxmpp/xmlstream/matcher/xmlmask.py
sleekxmpp/xmlstream/xmlstream.py
Conflicts:
examples/ping.py
sleekxmpp/basexmpp.py
sleekxmpp/clientxmpp.py
sleekxmpp/features/feature_bind/bind.py
sleekxmpp/features/feature_mechanisms/mechanisms.py
sleekxmpp/plugins/gmail_notify.py
sleekxmpp/plugins/jobs.py
sleekxmpp/plugins/xep_0009/remote.py
sleekxmpp/plugins/xep_0009/rpc.py
sleekxmpp/plugins/xep_0012.py
sleekxmpp/plugins/xep_0045.py
sleekxmpp/plugins/xep_0050/adhoc.py
sleekxmpp/plugins/xep_0078/legacyauth.py
sleekxmpp/plugins/xep_0085/chat_states.py
sleekxmpp/plugins/xep_0199/ping.py
sleekxmpp/plugins/xep_0224/attention.py
sleekxmpp/xmlstream/handler/waiter.py
sleekxmpp/xmlstream/matcher/xmlmask.py
sleekxmpp/xmlstream/xmlstream.py
2011-11-19 18:23:26 -08:00
Vijay Pandurangan
e3b9d5abbf
double copy
2011-11-19 16:03:17 -08:00
Vijay Pandurangan
2332970cf2
elide unnecessary copy
2011-11-19 16:02:41 -08:00
Vijay Pandurangan
48af3d3322
remove unnecessary copies when only one handler matches. This was taking up ~ 15% of CPU on moderate load.
2011-11-19 15:59:38 -08:00
Lance Stout
429c94d6a9
Tidy up logging calls.
2011-11-19 12:07:57 -08:00
Vijay Pandurangan
deb52ad350
This change stops sleekxmpp from spending huge amounts of time unnecessarily computing logging data that may never be used. This is a HUGE performance improvement; in some of my test runs, unnecessary string creation was accounting for > 60% of all CPU time.
...
Note that using % in a string will _always_ perform the sting substitutions, because the strings are constructed before the function is called. So log.debug('%s' % expensiveoperation()) will take about the same CPU time whether or not the logging level is DEBUG or INFO. if you use , no substitutions are performed unless the string is actually logged
2011-11-20 03:39:05 +08:00
Vijay Pandurangan
6f3cc77bb5
This change stops sleekxmpp from spending huge amounts of time unnecessarily computing logging data that may never be used. This is a HUGE performance improvement; in some of my test runs, unnecessary string creation was accounting for > 60% of all CPU time.
...
Note that using % in a string will _always_ perform the sting substitutions, because the strings are constructed before the function is called. So log.debug('%s' % expensiveoperation()) will take about the same CPU time whether or not the logging level is DEBUG or INFO. if you use , no substitutions are performed unless the string is actually logged
2011-11-19 11:30:44 -08:00
Lance Stout
1baf139ca4
Bump next release version to 1.0-RC4
2011-11-18 16:40:17 -08:00
Lance Stout
7945b3e738
Remove the config_component example in favor of echo_component.
...
The roster portion of the example is too outdated.
2011-11-18 16:26:02 -08:00
Lance Stout
d4c1ff5309
Also fire changed_status when the status text changes for a resource.
2011-11-18 13:57:41 -08:00
Lance Stout
22868c3924
Fix changed_status event
...
Once again only fires when a resource's presence show value changes.
2011-11-18 13:39:02 -08:00
Lance Stout
2de1be188c
Add echo component example.
2011-11-17 12:25:56 -08:00
Lance Stout
9faecec2db
Simplify boilerplate example.
2011-11-14 12:00:21 -08:00
Lance Stout
5d7111fe3b
Update list of stable releases.
2011-11-14 11:46:07 -08:00
Lance Stout
0c86f8288d
No need to continue processing loop if an error ocurred and auto_reconnect=False.
2011-11-14 11:21:05 -08:00
Lance Stout
5a6a65fd9f
Fix typo
2011-11-14 11:20:53 -08:00
Lance Stout
43c4d23896
Explicitly test for inequality in JIDs.
...
Fixes issue #113
2011-11-14 09:15:43 -08:00
Lance Stout
9f9e8db814
Add use_ssl parameter to ClientXMPP.connect
2011-11-11 01:52:18 -08:00
Lance Stout
b8efcc7cf0
Don't just call self.disconnect in self.reconnect.
...
It messes up the auto_reconnect value and causes the XML processing
loop to spin wildly with errors on a stream disconnect.
2011-11-08 19:23:53 -08:00
Lance Stout
2f29d18e53
Use setuptools if available.
2011-11-08 07:01:16 -08:00
Lance Stout
888e286a09
Continue trying to reconnect, even if the attempt fails.
...
The transition from disconnected to connected states must be done in a
loop in case the transition fails, not just once and hope it worked.
2011-11-07 01:13:34 -08:00
Lance Stout
1a93a187f0
Fix a crash when removing a contact.
...
Original author: louiz
2011-11-06 08:33:03 -08:00
Lance Stout
a8d5da5091
Restore original behaviour for auto_authorize and auto_subscribe.
...
The change to using the new roster broke the original auto_* values
and used per-roster versions. The original auto_* values will now set
the behaviour globally. Use the per-roster values to override for a
specific JID.
2011-11-06 08:25:29 -08:00
Lance Stout
e2720fac9e
FIX SCRAM-SHA-1-PLUS
...
The mechanism name was being correctly de-plussed, but then we used the
original, -PLUS, name to extract the hash, finding SHA-1-PLUS and therefore
finding no match.
Test-Information:
Tested with Sleek against an Isode M-Link with SCRAM-SHA-1-PLUS available.
Author: dwd
2011-10-27 15:16:54 -04:00
Lance Stout
4374729f20
Update the docs for XEP-0060 publish method.
2011-10-11 20:37:50 -04:00
Lance Stout
87999333cb
Fix MUC methods to optionally specify the sending JID.
...
Should fix issue #107
2011-10-10 11:31:03 -04:00
Lance Stout
335dc2927b
Break reference cycle to fix potential memory leaks for callback handlers.
2011-10-08 17:31:30 -04:00
Lance Stout
ccbef6b696
Fix typos in the roster update method.
2011-10-07 18:13:50 -04:00
Lance Stout
3e384d3cfe
XEP-0009 will likely be updated to use <base64 /> instead of <Base64 />
...
Both are supported when reading, but <base64 /> will be used for output.
2011-10-05 12:09:50 -04:00
Lance Stout
e33949c397
Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop
2011-10-04 10:37:42 -04:00
Lance Stout
eccac859ad
Fix missing import statement.
...
Fixes issue #105
2011-10-04 10:36:52 -04:00
Lance Stout
7dd586f2fd
Merge pull request #104 from correl/develop
...
Make RPC events threaded
2011-10-03 13:19:16 -07:00
Correl Roush
3607c5b792
Make RPC events threaded
...
Allows, for example, an RPC service to make remote RPC calls with its
own connection without blocking its own thread waiting for the result.
2011-10-03 14:32:48 -04:00
Lance Stout
e37adace62
Allow SASL mechanism to be set when creating a ClientXMPP instance.
...
Instead of using:
ClientXMPP(jid, password, plugin_config={
'feature_mechanisms': {'use_mech': 'SOME-MECH'}})
You can use:
ClientXMPP(jid, password, sasl_mech='SOME-MECH')
If you need to change the mechanism after instantiation, use:
xmpp['feature_mechanisms'].sasl.mech = 'SCRAM-MD5'
2011-09-28 22:48:30 -04:00
Lance Stout
d10f591bf4
Expand live stream testing capabilities.
2011-09-28 17:26:29 -04:00
Lance Stout
262da78ca7
Fix del_event_handler for Python3 (different semantics for filter()).
...
Fixes issue #103
2011-09-23 12:03:49 -04:00
Lance Stout
0b83edf439
Fix regression for handling the case where the server terminates the stream.
...
The processing loop was continuing to call __read_xml after </stream>
was received, which caused SyntaxErrors (can't find starting element).
This should fix issue #102
2011-09-22 01:32:44 -04:00
Nathan Fritz
cf7fcf496e
SyntaxError requires a restart
2011-09-19 11:53:09 -07:00
Lance Stout
1765271f84
Make get_node_config block by default.
2011-09-02 11:52:56 -07:00
Lance Stout
0ec79f8dc3
Tweak setup.py, and bump dev version to RC3.
2011-09-01 16:47:30 -07:00
Lance Stout
6f72c05ebf
Add whitespace keepalive option.
...
May be disabled by setting:
self.whitespace_keepalive = False
The keepalive interval can be adjusted using:
self.whitespace_keepalive_interval = 300
The default interval is 5min.
2011-09-01 16:24:09 -07:00
Nathan Fritz
20cacc84ba
remove ping schedule on disconnect
2011-09-01 15:51:43 -07:00
Lance Stout
24a14a0284
Mark pubsub state stanzas as non-standard.
2011-09-01 15:29:05 -07:00
Lance Stout
982c2d9b83
Add tests for pubsub error stanzas
2011-09-01 15:26:54 -07:00
Lance Stout
efa4a9b330
More stanza cleanup for pubsub.
2011-09-01 14:20:58 -07:00
Lance Stout
39ec1cff19
Some more minor cleanup.
2011-09-01 14:03:11 -07:00
Lance Stout
24c5f8d374
Clean up pubsub#event stanzas.
2011-09-01 14:01:58 -07:00
Lance Stout
d6b0158ddb
Clean up pubsub#owner stanzas.
2011-09-01 13:47:55 -07:00
Lance Stout
7e5e9542e9
Add support for notify attribute when retracting an item.
2011-09-01 13:36:11 -07:00
Lance Stout
d7fc2aaa9c
Add ability to get global/node default subscription options.
2011-09-01 13:25:35 -07:00
Lance Stout
8471a485d1
Clean up pubsub stanzas.
2011-09-01 13:12:26 -07:00
Lance Stout
462b375c8f
Owners can modify subscriptions/affiliations. With tests.
...
94% coverage for the main pubsub plugin! (91% including stanzas)
2011-09-01 12:09:24 -07:00
Lance Stout
afbd506cfc
Users can retrieve their affiliations now, with tests.
2011-09-01 11:30:55 -07:00
Lance Stout
ec01e45ed1
Add ability for a user to get retrieve subscriptions, with tests.
2011-09-01 11:19:25 -07:00
Lance Stout
993829b23f
Add tests for pubsub subscription options.
2011-09-01 10:44:14 -07:00
Lance Stout
002257b820
Add tests for retrieving pubsub items.
2011-09-01 09:27:10 -07:00
Lance Stout
0af35c2224
Fix memory reference bugs.
2011-09-01 00:50:45 -07:00
Lance Stout
76bc0a2ba6
XEP-0060 v1.13 dictates publishing/retracting one item at a time.
2011-08-31 23:48:22 -07:00
Lance Stout
d2dc4824ee
Simplify pubsub tests.
...
We don't really care about empty responses, so let's use block=False.
2011-08-31 21:52:17 -07:00
Lance Stout
3f9ca0366b
Add test for purging a pubsub node.
2011-08-31 21:09:25 -07:00
Lance Stout
b68785e19e
Retract stanzas are behaving oddly when using stanza values.
2011-08-31 16:03:32 -07:00
Lance Stout
a1bbb719e1
Test publishing multiple items, and with options.
2011-08-31 15:04:46 -07:00
Lance Stout
46f23f7348
Test publishng an item with options.
2011-08-31 14:55:37 -07:00
Lance Stout
09252baa71
Test publishing a single item.
2011-08-31 14:31:20 -07:00
Lance Stout
3623a7a16a
More pubsub unit tests!
2011-08-31 14:05:29 -07:00
Lance Stout
cc504ab07c
Fix pubsub get_items.
...
- item_ids checked for None
- pubsub node is set
2011-08-31 10:56:43 -07:00
Lance Stout
2500a0649b
Fix requesting pubsub node configuration, and add tests.
...
- <default /> doesn't have a type attribute in the XEP
- <configure /> isn't used anymore for requesting default configuration
2011-08-31 10:43:33 -07:00
Lance Stout
5ec4e4a026
Added pubsub error stanza.
...
iq['error']['pubsub']['condition']
iq['error']['pubsub']['unsupported']
2011-08-31 00:42:37 -07:00
Lance Stout
c3df4dd052
Create a tox config for automating tests for different Python versions.
...
To use:
sudo pip install tox
tox
2011-08-31 00:00:12 -07:00
Lance Stout
730c3fada0
Add tests for pubsub unsubscribe.
2011-08-30 23:18:13 -07:00
Lance Stout
628978fc8c
Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop
2011-08-30 23:11:11 -07:00
Nathan Fritz
7fb9d68714
fixed form accessors in pubsub stanzas
2011-08-30 23:10:13 -07:00
Lance Stout
e0a1c477d0
Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop
2011-08-30 23:03:51 -07:00
Nathan Fritz
b70565720f
fixed test further... but now I have an out of order problem
2011-08-30 23:03:04 -07:00
Lance Stout
33ac0c9dd6
Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop
2011-08-30 22:45:08 -07:00
Nathan Fritz
4699bdff60
Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop
2011-08-30 22:44:34 -07:00
Nathan Fritz
354641a3ce
added publish-options element
2011-08-30 22:44:19 -07:00
Lance Stout
58a43e40c7
Get/set pubsub subscription options.
2011-08-30 22:27:21 -07:00
Lance Stout
6b7fde10d3
Test pubsub subscribe.
2011-08-30 22:27:02 -07:00
Lance Stout
13fdab0139
Test and fix XEP-0060 delete_node()
2011-08-30 21:57:11 -07:00
Lance Stout
2ce617b2ce
Fix typo
2011-08-30 09:24:46 -07:00
Lance Stout
63e0496c30
Finish up all major actions in the current XEP-0060.
...
Still need tests and docs.
2011-08-29 23:05:14 -07:00
Lance Stout
850e3bb99b
Stub out missing functionality for pubsub
2011-08-29 21:38:41 -07:00
Lance Stout
2d90deb96a
The ifrom parameter doesn't need special treatment.
2011-08-26 22:06:32 -07:00
Lance Stout
3fb3f63e51
Add docs + extended Iq send arguments to pubsub methods.
2011-08-26 16:57:37 -07:00
Lance Stout
d12949ff1c
Fix typos in XEP-0060, start of docs and tests.
2011-08-26 12:14:57 -07:00
Lance Stout
e3e985220e
Simplify the main process loop.
2011-08-25 17:08:20 -07:00
Lance Stout
802dd8393d
Make the timeout for event queue checks configurable.
...
Now defaults xmlstream.WAIT_TIMEOUT, and settable with
self.wait_timeout.
The new default timeout is 1sec instead of 5sec.
2011-08-25 16:45:34 -07:00
Lance Stout
fe6bc31c60
Added XMLStream.configure_dns.
...
This can be overridden to do custom configuration for the DNS resolver,
or any other DNS related tasks such as calling the system's res_init().
2011-08-25 16:18:26 -07:00
Lance Stout
2162d6042e
Session timeout now defaults to 45sec, but can be adjusted.
...
e.g.
self.session_timeout = 15
It is also managed by XMLStream instead of ClientXMPP now.
2011-08-25 15:40:13 -07:00
Lance Stout
b8a4ffece9
Handle sending stanzas in chunks if the socket has poor performance.
2011-08-25 15:08:45 -07:00
Lance Stout
d929e0deb2
Shutdown socket before closing.
2011-08-25 13:48:43 -07:00
Lance Stout
4c08c9c524
Update scheduler with locks and ability to remove tasks.
...
Scheduled tasks must have a unique name.
2011-08-25 13:34:30 -07:00
Lance Stout
63b8444abe
Add overridable method self.configure_socket().
...
Allows for setting app specific socket timeouts and other socket options.
2011-08-25 00:22:26 -07:00
Lance Stout
82546d776d
Fix tests in Python3.
2011-08-25 00:21:53 -07:00
Lance Stout
84f9505a8d
Fix handling of DNS exceptions.
2011-08-24 22:40:57 -07:00
Lance Stout
ede59ab40e
Clean and get setup.py working once and for all.
...
Fixes:
README.rst now included
Double line spacing removed from long_description
Source package now includes tests, examples, etc using Manifest.in
README.rst typos fixed
Added README.rst section on installing dnspython for Python3
Version bumped to RC2
Version is now taken from sleekxmpp.version.__version__ without
having to pull in the entire library
Added 'test' command for setup.py
Simplified testall.py
Docs build cleanly from source package after installation
2011-08-24 22:09:02 -07:00
Lance Stout
2a80824076
Remove extra debugging code that made it into a commit.
2011-08-23 14:14:21 -07:00
Lance Stout
f92f96325a
Make Iq exceptions more discoverable and simpler to use.
...
IqError and IqTimeout now extend XMPPError, so if you don't care
about the difference, you can use:
try:
self.do_something_with_iqs()
except XMPPError:
# Error? Timeout? I don't care!
pass
If you do need to distinguish between timeouts and error replies,
you can still continue to use:
try:
self.do_somethin_with_iqs()
except IqError as err:
pass
except IqTimeout:
pass
If you don't catch any Iq errors and you're processing a stanza
then an error response will be sent, just like normal if you raise
XMPPError or any other exception, except that the error messages
will be generic to prevent leaking too much information.
2011-08-19 01:04:20 -07:00
Lance Stout
b98555c512
Update the README
...
Now includes how to generate the docs, run tests, and the basic
boilerplate for Sleek based projects.
2011-08-18 16:32:06 -07:00
Lance Stout
e02a42a008
Route all unhandled exceptions through XMLStream.exception.
...
Or through an equivalent override.
2011-08-18 16:12:51 -07:00
Lance Stout
3e51126e18
PEP8 edits
2011-08-18 02:46:48 -07:00
Lance Stout
a714fa82b2
Remove extra, unhelpful presence debug log.
2011-08-18 02:46:08 -07:00
Lance Stout
e86e6eae81
Up the timeout to 30sec instead of 10sec.
2011-08-18 01:10:25 -07:00
Lance Stout
592c25f352
Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop
2011-08-18 01:07:21 -07:00
Lance Stout
015f662249
Update examples to work with Python3 (raw_input vs input)
2011-08-18 01:06:59 -07:00
Lance Stout
8d998d71a3
Update README (renamed to README.rst so Github will render it)
2011-08-18 01:04:59 -07:00
Nathan Fritz
f75b6bf955
added inline documentation for new dns methods
2011-08-18 01:04:01 -07:00
Nathan Fritz
fb78bf0996
fixed manual address definition
2011-08-18 00:59:27 -07:00
Lance Stout
cd7cd30b4c
Fix exceptions for Python3
2011-08-18 00:47:07 -07:00
Nathan Fritz
4ea22ff69b
Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop
2011-08-18 00:35:37 -07:00
Nathan Fritz
3853898ab3
DNS is now properly checked and different answers are tried for each reconnect until exhausted
2011-08-18 00:35:18 -07:00
Lance Stout
7d8aa4157b
Add an example for dumping the roster to the command line.
2011-08-18 00:08:52 -07:00
Lance Stout
3fc20e10f5
Add some convenience methods to rosters.
...
Can now use len(self.client_roster) to get the number of JIDs in
the roster, and self.client_roster.groups() to get a dict of
groups and the JIDs in those groups.
2011-08-18 00:07:37 -07:00
Lance Stout
004eabf809
Update plugins that use Iq stanzas to work with new exceptions.
2011-08-17 21:30:47 -07:00
Lance Stout
62230fc970
Return '' instead of None from form fields with no values.
2011-08-17 21:22:03 -07:00
Lance Stout
961668d420
Add guide for sending a message and then disconnecting.
2011-08-17 21:21:37 -07:00
Lance Stout
01061a0355
More documentation!
...
Finished the echo bot quickstart.
Added placeholders for other guides we need.
2011-08-13 20:58:53 -07:00
Lance Stout
9fdd85d9f1
I've seen people complain about Sleek taking so long to disconnect.
...
Added logging to say that we're waiting for the server to end the stream
from its end.
2011-08-13 08:58:07 -07:00
Lance Stout
331db30f8f
Add form.field back in for backwards compatibility.
2011-08-13 08:34:23 -07:00
Lance Stout
017d7ec62b
Add tests for setting a form's type to 'submit' or 'cancel'.
...
Form fields now remember their current type if the type is deleted. This
allows for fields to properly format their values if set after the form
has been changed to the 'submit' type.
2011-08-13 01:28:18 -07:00
Lance Stout
76826b5495
The todo1.0 list isn't needed any longer :)
...
The last few plugins that were in the list will be cleaned up in 1.1
or 1.2 - XEP-0012, XEP-0009, XEP-0033, XEP-0045, and gmail_notify.
2011-08-13 00:16:36 -07:00
Lance Stout
de315ff6d8
Fix typo.
2011-08-13 00:16:25 -07:00
Lance Stout
c26b716164
Update XEP-0050 to use new IQ exceptions.
...
IqError is now caught and forwarded to the command error handler referenced
in the session.
Errors are now caught and processed by the session's error handler
whether or not the results Iq stanza includes the <command> substanza.
Added the option for blocking command calls. The blocking option is set
during start_command with block=True. Subsequent command flow methods use
session['block'] to determine their blocking behaviour.
If you use blocking commands, then you will need to wrap your command calls
in a try/except block for IqTimeout exceptions.
2011-08-13 00:10:06 -07:00
Lance Stout
dcaddb8042
Include new XEP-0004 directories in setup.py
2011-08-12 23:56:14 -07:00
Lance Stout
5ef197e5fd
Start of docs for 1.0
2011-08-12 17:33:32 -07:00
Lance Stout
52ed02bd06
Update .gitignore
2011-08-12 17:22:27 -07:00
Lance Stout
bd427849fb
Reduce the maximum delay between connection retries to 10min.
2011-08-12 17:17:05 -07:00
Lance Stout
127d7acb91
Missing commas in setup.py
2011-08-12 16:53:08 -07:00
Lance Stout
484efff156
Merge branch 'develop' into roster
...
Conflicts:
setup.py
sleekxmpp/clientxmpp.py
2011-08-12 16:47:58 -07:00
Nathan Fritz
8f1d0e7a79
Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop
2011-08-12 16:36:03 -07:00
Nathan Fritz
88184ff955
fixed indenting and merged in exceptions branch
2011-08-12 16:35:36 -07:00
Nathan Fritz
bd8c110f00
Merge branch 'exceptions' into develop
2011-08-12 16:35:15 -07:00
Nathan Fritz
0050c51124
updated pubsub plugin to use stanzas
2011-08-12 16:32:09 -07:00
Lance Stout
9b7ed73f95
Reorganize XEP-0004.
...
Changes:
May now use underscored method names
form.field is replaced by form['fields']
form.get_fields no longer accepts use_dict parameter, it always
returns an OrderedDict now
form.set_fields will accept either an OrderedDict, or a list
of (var, dict) tuples as before.
Setting the form type to 'submit' will remove extra meta data
from the form fields, leaving just the 'var' and 'value'
Setting the form type to 'cancel' will remove all fields.
2011-08-11 21:59:55 -07:00
Nathan Fritz
a189cb8333
Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop
2011-08-10 13:37:49 -07:00
Nathan Fritz
0d4825d3ea
added send_client example
2011-08-10 13:37:36 -07:00
Lance Stout
156b3200e3
Don't include ping stanza in the ping result.
2011-08-10 09:05:43 -07:00
Lance Stout
572becad44
Enable forcing a specififc SASL mech:
...
xmpp = ClientXMPP(jid, password, {
'feature_mechanisms': {'use_mech':'PLAIN'}})
2011-08-09 00:51:49 -07:00
Lance Stout
75f23d1130
Fix XEP-0078 using the new stream feature workflow.
...
Honestly, this is mainly just a demo/proof of concept that we
can handle dependencies and ordering issues with stream features.
DON'T use XEP-0078 if you are able to use the normal SASL method,
which should be the case unless you are dealing with a very old
XMPP server implementation.
2011-08-06 12:30:56 -07:00
Lance Stout
e83fae3a6f
Save the stream ID when the stream starts.
2011-08-06 00:44:32 -07:00
Lance Stout
5be5b8c02b
If no config for a plugin is given, try using self.plugin_config.
...
Sleek loads a few plugins by default, which made it difficult to
configure or even disable them.
Now, if a plugin is registered without any configuration, then
sleek will try finding a configuration in self.plugin_config.
2011-08-06 00:41:14 -07:00
Lance Stout
6c4cb2bf00
Merge branch 'master' into develop
...
Adds hotfix for ANONYMOUS mech support.
Conflicts:
sleekxmpp/__init__.py
2011-08-05 14:08:32 -07:00
Lance Stout
148a23579c
Hotfix for ANONYMOUS mech support.
...
Updates version to 1.0-Beta6.1
2011-08-05 14:06:58 -07:00
Lance Stout
ea95811c4c
The next release will be 1.0 RC1
2011-08-05 09:01:50 -07:00
Lance Stout
08cb5f42e7
Update the info in setup.py
...
I thought I had done this a long time ago, but it must have been in a
lost branch. *shrug*
It's too late for Beta6, so I've manually updated the PyPI entry.
2011-08-05 09:00:55 -07:00
Lance Stout
9abf37bbd1
Ignore Manifest and dist dir in git.
2011-08-05 09:00:42 -07:00
Lance Stout
168203c94d
Update 1.0 todo list.
...
Most of these items will probably be pushed to 1.1
2011-08-04 22:42:54 -07:00
Lance Stout
47bc50d9fb
Cosmetic PEP8 fixes.
2011-08-04 22:37:22 -07:00
Lance Stout
93a4a3f8a0
Fix Python3 issue with dict.has_key()
2011-08-04 22:36:23 -07:00
Lance Stout
940e3eba35
Make sure setup.py has all of the plugins.
...
XEP-0199 got dropped during a cut/paste for 203 and 204.
2011-08-04 21:56:35 -07:00
Lance Stout
b7cd119b0c
Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop
2011-08-04 21:50:14 -07:00
Nathan Fritz
7f90de887a
added block as process option and updated documentation. added typical use example to ClientXMPP.
2011-08-04 21:49:32 -07:00
Lance Stout
6c8a135612
Fix imports using __all__.
2011-08-04 21:49:15 -07:00
Lance Stout
caec2976d7
Fix Python3 bug.
...
Use int() instead of long()
2011-08-04 20:34:23 -07:00
Lance Stout
4d8933abdf
Actually, we can work around needing dateutil.
...
If dateutil is present, we'll use that. If not, we'll use
some regexes from the fixed_datetime module.
2011-08-04 20:22:07 -07:00
Lance Stout
6eac0606cf
Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop
2011-08-04 19:07:04 -07:00
Lance Stout
89cffd43f4
Merge branch 'develop' into roster
...
Conflicts:
setup.py
2011-08-04 11:52:17 -07:00
Lance Stout
b9764cc120
Clean up and unify tostring once and for all.
...
Packaging for Python3 just got easier.
2011-08-04 11:41:36 -07:00
Lance Stout
7cd39a6aad
Fix imports for xep_0060
2011-08-04 11:38:14 -07:00
Lance Stout
a8f57d012f
Let's make sure licenses can be seen and checked.
2011-08-04 00:41:02 -07:00
Lance Stout
a0767f6af6
Sadly, dateutil is not actually part of the standard lib.
...
Thus, using the XEP-0082 and XEP-0202 introduces a dependency
on the dateutil package (installable using pip install python-dateutil).
Maybe we'll be able to rework how these plugins work to avoid
needing dateutil, but for now this will have to do.
2011-08-04 00:07:30 -07:00
Nathan Fritz
9ffdba8643
the great xep_0060 re-organization in preperation for rewrite
2011-08-03 23:56:24 -07:00
Lance Stout
9591cd3a7e
Merge branch 'stream_features' into develop
2011-08-03 18:35:01 -07:00
Nathan Fritz
afeb8a679a
updated setup.py to include stream features plugins
2011-08-03 18:30:46 -07:00
Nathan Fritz
db92fa2330
started transition to xep_0060 rewrite
2011-08-03 18:11:00 -07:00
Lance Stout
d94517d9ca
Merge branch 'develop' into stream_features
2011-08-03 17:37:15 -07:00
Lance Stout
0bec040cfe
Make sure to keep David Cridland's license and copyright.
2011-08-03 17:08:45 -07:00
Lance Stout
3918ddb075
Merge branch 'develop' into stream_features
2011-08-03 17:02:33 -07:00
Lance Stout
d4091dbde6
Integrate a modified version of Dave Cridland's Suelta SASL library.
2011-08-03 17:00:51 -07:00
Lance Stout
d7fe724145
Merge branch 'develop' into exceptions
2011-07-27 19:36:04 -07:00
Lance Stout
ad978700fc
Merge branch 'develop' into roster
2011-07-27 19:35:42 -07:00
Lance Stout
e022b2a36c
Add support for HTTP Proxy connections.
2011-07-27 19:35:03 -07:00
Lance Stout
ad032e5ed7
Fix error with DNS selection.
...
Missed a renaming of 'priority' to 'item'
2011-07-27 18:40:57 -07:00
Kim Alvefur
45412fd404
Do a weighted choice among the highest prioritized items based on weight instead of a weighted choice based on priorities.
2011-07-16 11:00:59 +08:00
Lance Stout
ccc6ab1281
Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop
2011-07-05 21:30:16 -07:00
Lance Stout
712da4c46e
Add test to check that presence events are firing.
2011-07-05 21:29:31 -07:00
Lance Stout
b2d42b1d6c
Test no longer applies to latest version of XEP-0066.
2011-07-05 11:18:46 -07:00
Lance Stout
1d22a04721
Added support for custom OOB transfer handlers.
...
Accepting download requests can be done using:
self['xep_0066'].register_url_handler(handler=self.oob_download)
# Add jid=... to specify a handler for a particular JID for a
# componenent.
def oob_download(self, iq):
if iq['from'] not in self.custom_oob_whitelist:
raise XMPPError('not-authorized')
try:
data = urllib2.urlopen(iq['oob_transfer']['url'])
file = open('oob_download', 'w+')
file.write(data.read())
file.close()
data.close()
except:
raise XMPPError('item-not-found')
2011-07-05 09:22:17 -07:00
Lance Stout
5efb170e1d
Added wait parameter to disconnect.
...
If wait=True, then the disconnect call will block until
the send queue has emptied.
WARNING: Using wait=True when more stanzas are being added to the
queue than can be processed such that the queue is never empty
will cause the disconnect call to block indefinitely without actually
disconnecting.
2011-07-04 18:47:57 -07:00
Lance Stout
cccccdcc0a
Add logging to XEP-0066.
2011-07-03 20:39:03 -07:00
Lance Stout
8d384ce44f
Added XEP-0224 Attention plugin.
2011-07-03 20:37:21 -07:00
Lance Stout
4d6e7c7dbb
Update version number to beta6.
...
XEP-0092 now uses sleekxmpp.__version__ as a default version number.
2011-07-03 15:47:12 -07:00
Lance Stout
9c5885c6b6
Let XEP-0202 specify the local timezone offset in the config.
2011-07-03 15:41:22 -07:00
Lance Stout
ec3a14e6d9
Updated XEP-0202 plugin to new format and use XEP-0082.
2011-07-03 15:30:06 -07:00
Lance Stout
c98f5d4450
Fix some bugs in time handling.
...
Namely, minutes and seconds were reversed.
2011-07-03 13:41:15 -07:00
Lance Stout
2e8e542bc9
Added XEP-0203 Delayed Delivery plugin.
2011-07-03 12:43:34 -07:00
Lance Stout
7ccc67c06d
Added XEP-0082 plugin.
...
This should make things much easier for any stanza that uses timestamps.
2011-07-03 12:21:47 -07:00
Lance Stout
20df6348a4
Merge branch 'develop' into exceptions
2011-07-03 00:39:14 -07:00
Lance Stout
48fb7006f7
Merge branch 'develop' into roster
2011-07-03 00:39:02 -07:00
Lance Stout
9a6eb333e6
Merge branch 'develop' into stream_features
2011-07-03 00:38:22 -07:00
Lance Stout
086bf89d69
Added XEP-0066: Out-of-Band Data
2011-07-03 00:36:36 -07:00
Lance Stout
0224d028e7
SASL failure event now includes the failure stanza.
...
Broke SASL stanzas into separate files.
Fixed typo in feature_bind.
2011-07-02 23:09:29 -07:00
Lance Stout
540d749695
Fix ordering bug when retrieving an error condition.
2011-07-02 22:50:31 -07:00
Lance Stout
219df582da
It isn't 2010 anymore.
...
I keep forgetting to update the copyright on new code.
2011-07-02 22:49:34 -07:00
Lance Stout
b898b14b77
Use a set to track negotiated features.
...
Added guards to prevent renegotiating STARTTLS or SASL in cases where
servers don't behave properly.
2011-07-02 22:30:55 -07:00
Lance Stout
fba235a801
Simplify SASL mech registration.
...
Moved SASL registration completely to the feature plugin, instead of
keeping a portion of it in ClientXMPP.
2011-07-02 21:57:50 -07:00
Lance Stout
b0297af38d
Finish cleaning up stream feature organization.
...
Fixed missing references that weren't caught due to leftover pyc
file allowing tests to keep working when they shouldn't have.
2011-07-02 21:43:02 -07:00
Lance Stout
04def6d925
Merge branch 'develop' into stream_features
2011-07-01 15:19:37 -07:00
Lance Stout
7057984831
Merge branch 'develop' into roster
2011-07-01 15:19:05 -07:00
Lance Stout
2a2ac73845
So using sys.excepthook to catch errors only works once.
...
The error bubbles through the event processing loop, breaking it and
hanging the application.
Instead, there is now a .exception(e) method on XMLStream which may
be overridden or reassigned that will receive all unhandled exceptions
(read: not XMPPError) from event and stream handlers.
2011-07-01 15:18:10 -07:00
Lance Stout
634f5d691b
Continued reorganization and streamlining.
2011-07-01 14:45:55 -07:00
Lance Stout
754ac5092a
Reorganize features into plugins.
2011-06-30 15:40:22 -07:00
Lance Stout
9ed972ffeb
Fix SASL mechanism selection bug.
...
ANONYMOUS was being treated as PLAIN, mechanism was being chosen
purely from supported mechanisms, not those provided by the server.
Broke nested handler methods into top-level methods.
2011-06-29 14:05:27 -07:00
Lance Stout
3b1f3fddf0
Reorganized stream level stanzas.
2011-06-28 11:06:44 -07:00
Lance Stout
fa716457a5
Merge branch 'develop' into stream_features
2011-06-20 16:27:55 -07:00
Lance Stout
847510c6b5
Merge branch 'develop' into exceptions
2011-06-20 16:27:39 -07:00
Lance Stout
774e0f2022
Merge branch 'develop' into roster
2011-06-20 16:27:25 -07:00
Lance Stout
d8d9e8df16
Fix stanza clobbering when replying to errors.
...
If a stanza handler raised an exception, the exception was processed
and replied by the modified stanza, not a stanza with the original
content.
A copy is now made before handler processing, and if an exception occurs
it is the copy that processes the exception using the original content.
2011-06-20 16:25:56 -07:00
Lance Stout
d1e12cd46f
Need to store unavailable presence as last sent if broadcasted.
2011-06-18 14:39:17 -07:00
Lance Stout
adf6d49fd1
Store unavailable presence as last sent presence.
2011-06-18 14:36:19 -07:00
Lance Stout
0826a44d4b
Added roster package to setup.py
2011-06-18 14:32:09 -07:00
Lance Stout
ce145b04ac
Integrate roster with ClientXMPP.
...
Roster updates are now passed through to the roster when using
self.update_roster, etc.
2011-06-16 16:09:15 -07:00
Lance Stout
29d775e675
Integrate roster with BaseXMPP.
...
Last sent stanzas are saved regardless of if the roster is used
directly or self.send_presence
2011-06-16 16:03:31 -07:00
Lance Stout
251a47db8c
Split roster.py into a directory.
2011-06-16 14:15:22 -07:00
Lance Stout
e4b3a191d6
Merge branch 'develop' into roster
...
Conflicts:
sleekxmpp/basexmpp.py
2011-06-15 10:57:25 -07:00
Lance Stout
393d702e77
Merge branch 'develop' into exceptions
2011-06-15 10:56:49 -07:00
Lance Stout
4efd41f1ba
Merge branch 'develop' into stream_features
2011-06-15 10:56:33 -07:00
Lance Stout
58aa944a5e
Fix another roster issue.
...
Caused by same issue of a JID being in the roster, but with an
incomplete entry.
2011-06-15 10:55:36 -07:00
Lance Stout
a3597d6deb
Merge branch 'develop' into roster
...
Conflicts:
sleekxmpp/basexmpp.py
2011-06-14 14:24:25 -07:00
Lance Stout
8fada4d015
Merge branch 'develop' into exceptions
2011-06-14 14:18:40 -07:00
Lance Stout
5d11ab269d
Merge branch 'develop' into stream_features
2011-06-14 14:10:52 -07:00
Lance Stout
dd41a85efc
Fix issue with components and roster.
...
If the roster contained a JID, but not any resource presence data, then
an error would occur when accessing self.roster[jid]['presence'].
2011-06-14 14:03:54 -07:00
Lance Stout
6d59f55fd4
Merge branch 'develop' into exceptions
2011-06-10 15:15:01 -07:00
Lance Stout
7a60e4b458
Merge branch 'develop' into stream_features
2011-06-10 15:14:51 -07:00
Lance Stout
937dce8e65
Merge branch 'develop' into roster
2011-06-10 15:14:37 -07:00
Nathan Fritz
e2d18170b0
old xep_0050 plugin is now loadable
2011-06-10 04:14:01 +00:00
Lance Stout
e219c0f976
Added session_end event and some docs.
...
For now, session_end is the same as disconnected, but once support is
added later for stream management, the two events will become distinct.
Plugins should add handlers for session_end for cleaning any session
state.
2011-06-08 10:24:25 -07:00
Lance Stout
5c1562f36b
Merge branch 'develop' into exceptions
2011-06-08 10:02:38 -07:00
Lance Stout
823c13707d
Merge branch 'develop' into stream_features
2011-06-08 10:02:22 -07:00
Lance Stout
8eb59072b4
Merge branch 'develop' into roster
2011-06-08 10:01:52 -07:00
Lance Stout
4266ee0fa4
Fix XEP-0050 issue with Unicode string type checking.
2011-06-08 10:00:28 -07:00
Lance Stout
3a62908703
Send component handshake immediately.
2011-06-08 10:00:01 -07:00
Lance Stout
20d053807d
IqTimeout now references the original sent stanza.
...
A little extra bit of docs for IqError.
2011-06-01 15:28:33 -07:00
Lance Stout
8aa4396e44
Begin experimental use of exceptions.
...
Provides IqTimeout and IqError which are raised when an Iq response
does not arrive in time, or it arrives with type='error'.
2011-06-01 15:17:22 -07:00
Lance Stout
8f9100c762
Merge branch 'develop' into stream_features
2011-06-01 15:17:13 -07:00
Lance Stout
788a5b73f9
Merge branch 'develop' into roster
2011-06-01 15:17:04 -07:00
Lance Stout
1469323350
Cache stanza if sending fails.
...
The stanza will be sent first once the send queue is reactivated
after session start.
Stanzas sent by skipping the queue will not be cached.
2011-06-01 15:10:44 -07:00
Lance Stout
83a73ac9b7
Merge branch 'develop' into stream_features
...
Conflicts:
sleekxmpp/clientxmpp.py
2011-05-31 11:05:54 -07:00
Lance Stout
5ed27bf5f6
Merge branch 'develop' into roster
2011-05-31 10:59:14 -07:00
Lance Stout
a81162edd2
Apply connection backoff to reconnect attempts.
...
Backoff was only being done for the initial connection attempt
before. Now any reconnection will start with a minimum 1 sec
delay which will approximately double between attempts.
2011-05-31 10:55:15 -07:00
Lance Stout
8080b4cae2
Cleanup logging and exception handling.
...
The syntax and attribute errors raised during a disconnect/reconnect
attempt are now caught and produce nicer log messages.
2011-05-31 10:23:05 -07:00
Lance Stout
1735c194cd
Don't use the send queue for stream initialization.
...
Use the parameter now=True to skip the queue when
sending Iq stanzas, or using xmpp.send().
2011-05-27 17:00:57 -07:00
Lance Stout
6997b2fbf8
Fix typo for SSL certificate use.
2011-05-27 16:39:45 -07:00
Lance Stout
b81ab97900
Add exponential backoff to connection attempts.
...
Delay will approximately double between attempts (random variation).
See issue #67 .
2011-05-27 14:42:40 -07:00
Lance Stout
384e1a92b7
Added support for testind disconnect errors.
2011-05-27 11:01:30 -07:00
Lance Stout
ccb0eeefbd
Merge branch 'develop' into stream_features
2011-05-25 15:53:33 -07:00
Lance Stout
62bdaab7c7
Merge branch 'develop' into roster
2011-05-25 15:53:24 -07:00
Lance Stout
ec9aed5b75
Fix test for get_roster().
...
Python2.6 has issues passing a Unicode string as a keyword name.
2011-05-25 15:52:42 -07:00
Lance Stout
9851a2a057
Merge branch 'develop' into stream_features
2011-05-20 21:41:44 -04:00
Lance Stout
bb2bc64d15
Merge branch 'develop' into roster
2011-05-20 21:40:37 -04:00
Lance Stout
7152d93dd0
Fix test timeout issue.
...
A better method than using time.sleep is needed.
Maybe use queue.task_done to detect when event processing
has ended? Research time!
2011-05-20 21:38:43 -04:00
Lance Stout
baa1eaf73a
Fix test for Python3.
...
Issue of dict_keys vs list data types.
2011-05-20 21:36:09 -04:00
Lance Stout
4c7da3899e
Merge branch 'develop' into roster
...
Conflicts:
tests/test_stream_roster.py
2011-05-20 21:26:45 -04:00
Lance Stout
4bb226147a
Make roster test a little more robust.
2011-05-20 21:19:27 -04:00
Lance Stout
4d3593ac86
Merge branch 'develop' into roster
...
Conflicts:
tests/test_stream_roster.py
2011-05-20 21:12:53 -04:00
Lance Stout
c49a8e9114
Save progress
2011-05-20 17:42:40 -04:00
Lance Stout
6b274a2543
Fix double roster entry issue with Unicode.
...
JIDs with Unicode values were being encoded by the JID class
instead of leaving them as just Unicode strings.
It may still be a good idea to use
from __future__ import unicode_literals
pretty much everywhere though.
Fixes issue #88 .
2011-05-20 16:48:13 -04:00
Lance Stout
a269be485f
Merge branch 'develop' into stream_features
2011-05-20 13:46:46 -04:00
Lance Stout
d3bd9cd31d
Merge branch 'develop' into roster
2011-05-20 13:46:36 -04:00
Lance Stout
6a07e7cbe3
Handle callback return value case.
2011-05-20 13:46:12 -04:00
Lance Stout
e694e4a791
Merge branch 'stream_features' of github.com:fritzy/SleekXMPP into stream_features
2011-05-20 13:27:39 -04:00
Lance Stout
e2de82ac8d
Merge branch 'develop' into stream_features
...
Conflicts:
sleekxmpp/clientxmpp.py
2011-05-20 13:26:21 -04:00
Lance Stout
e3b14bc5a9
Merge branch 'develop' into roster
...
Conflicts:
sleekxmpp/clientxmpp.py
tests/test_stream_roster.py
2011-05-20 13:23:48 -04:00
Lance Stout
9f1648328f
Resolve timeout errors for get_roster.
...
See issue #89
Using get_roster will now return the same types of values as
Iq.send. If a timeout occurs, then the event 'roster_timeout'
will be fired. A successful call to get_roster will also
raise the 'roster_received' event.
To ensure that the get_roster call was successful, here
is a pattern to follow:
def __init__(self, ...):
...
self.add_event_handler('session_start', self.session_start)
self.add_event_handler('roster_timeout', self.roster_timeout)
self.add_event_handler('roster_received', self.roster_received)
def session_start(self, e):
self.send_presence()
self.get_roster()
def roster_timeout(self, e):
# Optionally increase the timeout period
self.get_roster(timeout=self.response_timeout * 2)
def roster_received(self, iq):
# Do stuff, roster has been initialized.
...
2011-05-20 12:56:00 -04:00
Lance Stout
8e9b3d0760
Ensure that the XEP-0086 plugin is loaded.
...
Since the XEP-0086 plugin auto adds error code values,
it must be reliably loaded or unloaded when certain tests
are run so that stanzas may be matched. In this case, we
ensure that the plugin is used.
2011-05-13 15:28:47 -04:00
Lance Stout
b1439df72a
Merge branch 'develop' into stream_features
2011-04-26 16:33:42 -04:00
Lance Stout
8e46aa7054
Merge branch 'develop' into roster
2011-04-26 16:33:32 -04:00
Lance Stout
5399fdd3a9
Add support for testing that no stanzas are sent in tests.
...
Use: self.send(None)
2011-04-26 16:32:58 -04:00
Nathan Fritz
8a22597180
added has_jid to roster
2011-04-15 17:43:12 -07:00
Nathan Fritz
016aac69f6
Pubsub/Unsubscribe was not getting registered
2011-04-14 17:35:20 -07:00
Nathan Fritz
e919906c8c
Pubsub/Unsubscribe was not getting registered
2011-04-14 17:34:33 -07:00
Nathan Fritz
46dc6eac88
remove roster item state responsibility from clients
2011-04-14 16:27:27 -07:00
Lance Stout
ea8c40c7b6
Merge branch 'develop' into stream_features
2011-04-11 14:23:47 -04:00
Lance Stout
b9bf30e095
Merge branch 'develop' into roster
2011-04-11 14:23:39 -04:00
Lance Stout
1d891858b6
Mark scheduler thread as a daemon.
2011-04-11 14:22:32 -04:00
Lance Stout
b60c51ef13
Merge branch 'develop' into roster
2011-04-08 16:52:20 -04:00
Lance Stout
f02b0564e0
Update tests to reflect XEP-0086 correcting error codes.
2011-04-08 16:51:24 -04:00
Lance Stout
ae5ce17035
Merge branch 'develop' into stream_features
2011-04-08 16:42:02 -04:00
Lance Stout
6b05938573
Merge branch 'develop' into roster
2011-04-08 16:41:45 -04:00
Lance Stout
2e1befc8c6
Make setup.py use sleekxmpp.__version__
2011-04-08 16:41:18 -04:00
Lance Stout
87ccd804ff
Add version info.
...
May now use sleekxmpp.__version__ and sleekxmpp.__version_info__.
2011-04-08 16:39:39 -04:00
Lance Stout
d7ba7cc72a
Use underscore method name.
...
Since camelcase names are aliased to the underscored name at startup,
if the underscored version is replaced later, the camelCase name does
not reflect the change.
2011-04-08 16:14:22 -04:00
Lance Stout
f125c11a81
Merge branch 'develop' into stream_features
2011-03-24 13:15:09 -04:00
Lance Stout
77601f7262
Merge branch 'develop' into roster
2011-03-24 13:15:00 -04:00
Lance Stout
d94811d81d
Added new implementation for XEP-0086.
2011-03-24 13:14:26 -04:00
Lance Stout
6d45971411
Allow a stanza plugin to override a parent's interfaces.
...
Each interface, say foo, may be overridden in three ways:
set_foo
get_foo
del_foo
To declare an override in a plugin, add the class field
overrides as so:
overrides = ['set_foo', 'del_foo']
Each override must have a matching set_foo(), etc method
for implementing the new behaviour.
To enable the overrides for a particular parent stanza,
pass the option overrides=True to register_stanza_plugin.
register_stanza_plugin(Stanza, Plugin, overrides=True)
Example code:
class Test(ElementBase):
name = 'test'
namespace = 'testing'
interfaces = set(('foo', 'bar'))
sub_interfaces = set(('bar',))
class TestOverride(ElementBase):
name = 'test-override'
namespace = 'testing'
plugin_attrib = 'override'
interfaces = set(('foo',))
overrides = ['set_foo']
def setup(self, xml):
# Don't include an XML element in the parent stanza
# since we're adding just an attribute.
# If adding a regular subelement, no need to do this.
self.xml = ET.Element('')
def set_foo(self, value):
print("overrides!")
self.parent()._set_attr('foo', 'override-%s' % value)
register_stanza_plugin(Test, TestOverride, overrides=True)
Example usage:
>>> t = TestStanza()
>>> t['foo'] = 'bar'
>>> t['foo']
'override-bar'
2011-03-24 12:25:17 -04:00
Lance Stout
84e2589f22
Left too much unlrelated code in example.
2011-03-24 09:42:54 -04:00
Lance Stout
bf2f2782b7
Merge branch 'develop' into stream_features
2011-03-24 09:36:35 -04:00
Lance Stout
d9be51b2ef
Merge branch 'develop' into roster
2011-03-24 09:36:26 -04:00
Lance Stout
a3d111be12
Added new XEP-0050 implementation.
...
Backward incompatibility alert!
Please see examples/adhoc_provider.py for how to use the new
plugin implementation, or the test examples in the files
tests/test_stream_xep_0050.py and tests/test_stanza_xep_0050.py.
Major changes:
- May now have zero-step commands. Useful if a command is
intended to be a dynamic status report that doesn't
require any user input.
- May use payloads other than data forms, such as a
completely custom stanza type.
- May include multiple payload items, such as multiple
data forms, or a form and a custom stanza type.
- Includes a command user API for calling adhoc commands
on remote agents and managing the workflow.
- Added support for note elements.
Todo:
- Add prev action support.
You may use register_plugin('old_0050') to continue using the
previous XEP-0050 implementation.
2011-03-24 09:35:36 -04:00
Lance Stout
4916a12b6f
Tidy up the examples.
2011-03-23 22:59:21 -04:00
Lance Stout
d6f2e51b05
Allow SleekTest to wait longer when checking for sent stanzas.
...
Now timeouts at 0.5sec instead of 0.1sec, which should prevent test
failures from stanzas being delayed longer than usual.
2011-03-23 20:23:49 -04:00
Lance Stout
feb7f892ea
Fix typo.
2011-03-23 19:00:20 -04:00
Lance Stout
a420771665
Updated todo file again.
...
Only 11 plugins left to tidy before 1.0!
2011-03-23 10:10:54 -04:00
Lance Stout
694673b9bd
Merge branch 'develop' into stream_features
2011-03-23 10:01:21 -04:00
Lance Stout
393259c24b
Merge branch 'develop' into roster
2011-03-23 10:01:10 -04:00
Lance Stout
f2449009d1
Updated todo file.
2011-03-23 10:00:48 -04:00
Lance Stout
833f95b53a
Cleaned XEP-0249 plugin, added tests.
2011-03-23 10:00:32 -04:00
Lance Stout
306bdd8021
Merge branch 'develop' into stream_features
2011-03-22 20:48:28 -04:00
Lance Stout
756c4c032f
Merge branch 'develop' into roster
2011-03-22 20:48:09 -04:00
Lance Stout
4b1fadde4b
Updated XEP-0128 plugin to work with the new XEP-0030 plugin.
...
Required fixing a few bugs in StanzaBase related to iterable
substanzas.
2011-03-22 20:42:43 -04:00
Lance Stout
a9685a00b3
Merge branch 'develop' into stream_features
...
Conflicts:
sleekxmpp/clientxmpp.py
2011-03-22 12:08:27 -04:00
Lance Stout
e1360ae049
Merge branch 'develop' into roster
2011-03-22 12:00:01 -04:00
Lance Stout
86a6b40fd8
Updated doc for connect()
2011-03-22 11:59:27 -04:00
Lance Stout
7ef6abb2a3
May pass use_tls=False to connect().
...
Will disable the use of TLS for the session.
2011-03-22 11:56:55 -04:00
Lance Stout
af45b51f4f
Fix error with session feature.
2011-03-18 17:57:49 -04:00
Lance Stout
566ec8a5f9
Merge branch 'develop' into stream_features
...
Conflicts:
sleekxmpp/xmlstream/stanzabase.py
2011-03-18 17:39:43 -04:00
Lance Stout
b048f8d733
Merge branch 'develop' into roster
2011-03-18 17:36:35 -04:00
Lance Stout
dbf6780345
Change namespace inclusion in strings.
...
ElementBase instances will display the top-most namespace by default.
StanzaBase instances will NOT display the top-most namespace by default.
May pass True or False to __str__ to override.
2011-03-18 17:34:07 -04:00
Lance Stout
450c313340
Fix error in stanza handler registration in XEP-0092.
2011-03-18 17:30:29 -04:00
Lance Stout
dca8516cec
Merge branch 'stream_features' of github.com:fritzy/SleekXMPP into stream_features
2011-03-18 15:52:13 -04:00
Lance Stout
f2c99798a6
Merge branch 'develop' into stream_features
2011-03-18 15:51:44 -04:00
Lance Stout
f65f88325b
Merge branch 'develop' into roster
2011-03-18 15:51:27 -04:00
Lance Stout
996ca52471
Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop
2011-03-18 15:48:38 -04:00
Lance Stout
6244857746
Fix self.disconnect(reconnect=True) not working.
2011-03-18 15:47:21 -04:00
Florent Le Coz
5635265203
Avoid infinite loop on version result
...
We need to check if type="get". otherwise we will send our version
when we will receive the version of the remote entity, and thus
going in an infinite loop.
2011-03-16 06:45:06 +08:00
Lance Stout
42c8f6ae87
Merge branch 'develop' into roster
2011-02-24 16:19:45 -05:00
Lance Stout
c2161ca56b
Merge branch 'develop' into stream_features
2011-02-24 16:19:35 -05:00
Lance Stout
45ccb31356
Remove the occasional warning about XEP-0059 not loaded.
2011-02-24 16:13:44 -05:00
Lance Stout
1a81b2f464
Add tests for XEP-0085, fix some bugs.
2011-02-24 14:15:02 -05:00
Lance Stout
77251452c1
Updated the XEP-0085 plugin.
...
Can now be used as so:
>>> msg['chat_state']
''
>>> msg
<message />
>>> msg['chat_state'] = 'paused'
>>> msg
<message>
<paused xmlns="http://jabber.org/protocol/chatstates " />
</message>
>>> msg['chat_state']
'paused'
>>> del msg['chat_state']
>>> msg
<message />
2011-02-24 12:10:29 -05:00
Lance Stout
4df3aa569b
Bring back the signal handlers (and the "killed" event).
...
Now done more responsibly, saving any existing signal handlers
and calling them when an interrupt occurs in addition to the
one Sleek installs.
NOTE: You may need to explicitly use "kill <process id>" in
order to trigger the proper signal handler execution, and
to raise the "killed" event.
2011-02-23 10:20:04 -05:00
Nathan Fritz
2e2e16e281
fixes to ping: auto-ping off by default, fixed ping-time of zero bug, fixed class name mismatch
2011-02-15 15:24:58 -08:00
Lance Stout
d5b3a52827
Merge branch 'develop' into stream_features
...
Conflicts:
sleekxmpp/xmlstream/stanzabase.py
2011-02-14 16:26:23 -05:00
Lance Stout
e4f3b777f9
Reset the roster on disconnect instead of replacing it.
2011-02-14 16:24:49 -05:00
Lance Stout
a278f79bdb
Merge branch 'develop' into roster
...
Conflicts:
sleekxmpp/clientxmpp.py
2011-02-14 16:18:44 -05:00
Lance Stout
d709f8db65
Use the _build_stanza method.
2011-02-14 13:50:59 -05:00
Lance Stout
75584d7ad7
Remap old method names in a better way.
...
This should prevent some reference cycles that will cause garbage
collection issues.
2011-02-14 13:49:43 -05:00
Lance Stout
e0f9025e7c
More attempts at fixing garbage collection.
...
Don't keep a reference to stanzas in Callback objects.
2011-02-14 11:30:04 -05:00
Lance Stout
9004e8bbf2
Break references that can prevent garbage collection.
2011-02-14 11:13:41 -05:00
Lance Stout
8b5511c7ec
Simplification when removing a deletable handler.
2011-02-13 16:40:04 -05:00
Lance Stout
34f6195ca5
Return the name of the registered callback.
...
Instead of the actual callback object, return just the name of
the callback object created when using iq.send(callback=..).
This will help prevent memory leaks by not keeping an additional
reference to the object, but still allows for the callback to be
canceled by using self.remove_handler("handler_name").
2011-02-13 16:30:57 -05:00
Lance Stout
70af52d74c
Make one-off Callbacks ready for deletion after the prerun step.
...
Waiting until the actual run step means that the handler is not
marked for deletion when checked in the __spawn_event() thread,
causing the callback to stay in the handler list.
2011-02-13 16:28:06 -05:00
Lance Stout
ca2b4a188a
Return the registered callback when using iq.send(callback=foo).
...
Allows for a callback to be canceled by unregistering the
returned handler.
2011-02-12 11:01:43 -05:00
Lance Stout
0d32638379
XMPPError exceptions can keep a stanza's contents.
...
This allows exceptions to include the original
content of a stanza in the error response by including
the parameter clear=False when raising the exception.
2011-02-11 15:20:26 -05:00
Lance Stout
c4b1212c44
Updated XEP-0199 plugin.
...
Now has docs and uses the new plugin format.
2011-02-11 00:30:45 -05:00
Nathan Fritz
3463bf46c6
added option to return false on ping error, added ping example
2011-02-10 13:45:35 -08:00
Lance Stout
13a01beb07
Fix same error for get_info default behaviour.
2011-02-09 09:12:44 -05:00
Lance Stout
145f577bde
Fix get_items default behaviour.
2011-02-09 08:58:00 -05:00
Lance Stout
30da68f47b
Update XEP-0060 test.
2011-02-08 21:09:49 -05:00
Florent Le Coz
72ead3d598
Replace the print statement by a log.debug call
...
This print syntax is deprecated in python3, so
the plugin was working only with python2
2011-02-09 10:02:14 +08:00
Florent Le Coz
4b71fba64c
Fix the xep_0009 import (no more relatives)
...
Also, remove trailing spaces in all files
of this plugin
2011-02-09 10:02:14 +08:00
Lance Stout
606c369173
Some more roster tweaks.
2011-02-08 19:15:50 -05:00
Stefan de Konink
1ed06bebcd
This fixes the configuration stuff, because type is form not submit with setNodeConfiguration.
2011-02-07 23:55:46 +08:00
Lance Stout
aa1996eba6
Fixed failing tests from new XEP-0009 plugin
2011-02-07 10:18:15 -05:00
Nathan Fritz
683f717cf7
fixed merge
2011-02-05 04:54:52 -08:00
Lance Stout
3c871920b1
Make the roster backend settable.
2011-02-02 12:05:34 -05:00
Lance Stout
de6170a13d
Merge branch 'develop' into roster
...
Conflicts:
sleekxmpp/basexmpp.py
2011-02-02 09:13:22 -05:00
Lance Stout
8dbe6f6546
Updated todo list for 1.0 release.
2011-01-31 15:54:44 -05:00
Lance Stout
5313338c3a
Fixes for XEP-0202
2011-01-31 15:40:00 -05:00
Lance Stout
1a270dc05c
First pass at re-worked stream features.
...
Stream features now use stanza objects!
Features are given a ranking that expresses the dependency
relationships (since only one feature is negotiated at a time, the
dependency graph can be replaced by a line).
>>> xmpp.register_feature('my_feature', _my_handler,
>>> restart=True, # Requires stream restart
>>> order=600) # Ranking (out of ~ 10,000,
>>> # lower #'s executed first)
SASL mechanisms may now be added or disabled as needed. Each mechanism
is given a priority value indicating the order in which the client
wishes for mechanisms to be tried. Higher priority numbers are executed
first.
>>> xmpp.register_sasl_mechanism('SASL-MECH', _mech_handler,
>>> priority=0)
Disabling a SASL mechanism:
>>> xmpp.remove_sasl_mechanism('ANONYMOUS')
2011-01-28 00:49:37 -05:00
Lance Stout
bd9bf3f1c7
Update tostring methods.
...
Will now always show top-level namespace, unless it is the same
as the stream's default namespace. Also added the XMPP stream
namespace to the namespace map as 'stream'.
2011-01-27 18:05:05 -05:00
Lance Stout
cd800d636a
Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop
2011-01-27 16:05:15 -05:00
Lance Stout
40642b2cd1
Make StreamError work properly.
...
Now uses the correct namespaces and condition names.
2011-01-27 16:02:57 -05:00
Lance Stout
35ef8f9090
Make stanza.plugins an OrderedDict.
...
This allows you to determine the order in which substanzas
were added in the original XML.
2011-01-27 16:01:35 -05:00
Lance Stout
38dc35840e
Recognize stanzas that don't use the default namespace.
2011-01-27 15:59:50 -05:00
Florent Le Coz
b4004cd4d6
xep_0045: fix the 'to' value when configuring room
2011-01-27 09:34:32 +08:00
Lance Stout
0c8a8314b2
Cleanup for stanzabase.
...
Use stanza.values instead of _get/set_stanza_values where used.
ElementBase stanzas can now use .tag
May use class method tag_name() for stanza classes.
ElementBase now has .clear() method.
2011-01-26 11:27:41 -05:00
Lance Stout
4e757c2b56
Upgraded how subitem works.
...
May now use register_stanza_plugin(Foo, Bar, iterable=True)
to add to the set of stanza classes used for iterable
substanzas. It is no longer necessary to manually specify
the contents of subitem if the new method is used.
2011-01-26 10:04:36 -05:00
Stefan de Konink
c3be6ea0b2
My hunch is that these should also be updated.
2011-01-23 02:08:29 +08:00
Lance Stout
da332365d4
Make extending stanza objects nicer.
...
A stanza object may add is_extension = True to its class definition
to provide a single new interface to a parent stanza.
For example:
import sleekxmpp
from sleekxmpp import Iq
from sleekxmpp.xmlstream import ElementBase, register_stanza_plugin, ET
class Foo(ElementBase):
"""
Test adding just an attribute to a parent stanza.
Adding subelements works as expected.
"""
is_extension = True
interfaces = set(('foo',))
plugin_attrib = 'foo'
def setup(self, xml):
# Don't include an XML element in the parent stanza
# since we're adding just an attribute.
# If adding a regular subelement, no need to do this.
self.xml = ET.Element('')
def set_foo(self, val):
self.parent()._set_attr('foo', val)
def get_foo(self):
return self.parent()._get_attr('foo')
def del_foo(self):
self.parent()._del_attr('foo')
register_stanza_plugin(Iq, Foo)
i1 = Iq()
i2 = Iq(xml=ET.fromstring("<iq xmlns='jabber:client' foo='bar' />"))
>>> i1['foo'] = '3'
>>> i1
'3'
>>> i1
'<iq id="0" foo="3" />'
>>> i2
'<iq id="0" foo="bar" />'
>>> i2['foo']
'bar'
>>> del i2['foo']
>>> i2
'<iq id="0" />'
2011-01-19 19:49:13 -05:00
Lance Stout
f7e7bf601e
Fix tests for Nick stanza.
2011-01-19 19:03:02 -05:00
Lance Stout
6f4c2f22f3
Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop
2011-01-19 17:50:05 -05:00
Lance Stout
493df57035
Fix thirdparty imports for Python3
2011-01-19 17:49:39 -05:00
Florent Le Coz
897a9ac333
Do not traceback when DNS resolution time out.
...
Just log that the resolution timed out, and fall back
to the hostname from the JID in this case
2011-01-20 06:34:08 +08:00
Lance Stout
acc2d071ac
Fix disco add_item.
...
If no JID is specified for the item, use xmpp.boundjid.full.
2011-01-19 17:27:53 -05:00
Lance Stout
d3b1f8c476
Fix namespace for Nick stanza.
2011-01-19 16:47:18 -05:00
Lance Stout
f1db2fc156
Fix error in disco add_item.
...
None values were not being treated properly.
2011-01-19 12:08:28 -05:00
Lance Stout
2004ddd678
Add StreamError stanza and a stream_error event.
...
Note that the stream may automatically attempt to
reconnect when a stream error is received.
2011-01-16 13:22:52 -05:00
Lance Stout
cb85d4a529
Raise the event 'socket_error' when a socket error occurs.
...
Will be most useful for debugging and responding to failed
connection attempts.
2011-01-16 13:07:39 -05:00
Lance Stout
ead3af3135
Make it easier to import OrderedDict
2011-01-15 17:15:33 -05:00
Lance Stout
a2891d7608
Fix how disco plugin looks up info and items for clients.
2011-01-15 10:08:35 -05:00
Lance Stout
d7dea0c6cc
Add a note for debug statement when running scheduled events.
...
Fixes the intermittent DEBUG ((),) messages that give no
explanation.
Will now show as:
DEBUG Scheduled event: ((), )
2011-01-14 12:07:25 -05:00
Lance Stout
65931bb384
Merge branch 'develop' into roster
2011-01-13 22:16:46 -05:00
Lance Stout
632827f213
Fix bug in JID class. Attribute .jid now works properly.
2011-01-13 10:21:20 -05:00
Lance Stout
b71550cec7
Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop
2011-01-13 10:20:34 -05:00
Dann Martens
b68e7bed40
Fixed typo.
2011-01-13 15:04:16 +01:00
Dann Martens
4be6482ff3
Fixed 'nil' bug in unmarshalling.
2011-01-13 13:42:01 +01:00
Dann Martens
a21178007f
Updated setup.py to include XEP-0009.
2011-01-13 12:53:17 +01:00
Dann Martens
2e6c27f665
Added examples.
2011-01-13 11:58:20 +01:00
Dann Martens
0a3a7b5a70
Removed binding XML namespace experiments.
2011-01-13 11:37:58 +01:00
Dann Martens
3a12cdbd13
Introduced new XEP-0009 into develop.
2011-01-13 08:40:53 +01:00
Lance Stout
7d93d1824b
Fix setup.py and old_0004.py typo bugs.
2011-01-12 12:22:48 -05:00
Lance Stout
ba0d699d83
Fix ordering error in Iq._set_stanza_values.
...
If iq['query'] was set before a plugin that used the query
element was set, then the query element was duplicated.
2011-01-12 08:55:33 -05:00
Lance Stout
c6ac40c476
Update setup.py with latest plugin packages.
2011-01-11 11:30:56 -05:00
Lance Stout
a5d53b3349
Fix method call error.
2011-01-10 16:33:30 -05:00
Lance Stout
4487a90623
Add self.client_roster to make things simpler for clients.
2011-01-10 16:28:49 -05:00
Lance Stout
05da8cc3d1
Merge branch 'develop' into roster
2011-01-10 16:27:18 -05:00
Te-je Rodgers
fe3f8dde4b
added plugin for xep-0249
2011-01-11 04:11:05 +08:00
Lance Stout
23e499998f
Merge branch 'develop' into roster
2011-01-09 10:04:09 -05:00
Lance Stout
acdf9e2d22
Need to run post_init properly.
2011-01-09 10:03:32 -05:00
Lance Stout
2076d506b4
Update the XEP-0092 plugin to the new style.
2011-01-08 22:38:13 -05:00
Florent Le Coz
68ce47c905
Allow XEP 0092 to send os information
...
Doesn't send these information by default, only if provided in the
config dict (as the 'os' key)
2011-01-09 10:08:44 +08:00
Lance Stout
7c7fa0f008
Add support for XEP-0059 to XEP-0030 plugin.
2011-01-08 11:19:31 -05:00
Lance Stout
a8e3657487
Added new XEP-0059 plugin.
...
Contributed by Erik Reuterborg Larsson (who).
2011-01-08 10:58:47 -05:00
Lance Stout
13a2f719f4
Add reattempt to ClientXMPP.connect
2011-01-07 16:41:31 -05:00
Lance Stout
2908751020
Allow JID objects to be compared with strings.
...
Two JIDs match if they have the same full JID value.
2011-01-05 20:16:15 -05:00
Lance Stout
c156a4f723
Merge branch 'develop' into roster
2011-01-05 16:53:33 -05:00
Lance Stout
8b29431cde
More clarification in docs for XEP-0030 plugin.
2011-01-04 19:39:10 -05:00
Lance Stout
4b145958fa
Clarify docs for disco.get_info.
2011-01-04 18:38:21 -05:00
Lance Stout
e08b0054b2
Keep things lined up.
2010-12-29 15:01:50 -05:00
Andrzej Bieniek
596e135a03
Fixed typo in comment.
2010-12-28 21:32:28 +00:00
Lance Stout
e55e213c78
Fix some typos.
2010-12-28 16:17:08 -05:00
Lance Stout
8749f5e09b
Make the new XEP-30 plugin retain older API signatures.
2010-12-28 15:43:00 -05:00
Lance Stout
b3353183f3
Added ordereddict implementation to thirdparty.
...
See http://pypi.python.org/pypi/ordereddict and
http://code.activestate.com/recipes/576693/ .
2010-12-21 17:33:31 -05:00
Lance Stout
3657bf6636
Merge branch 'develop' into roster
2010-12-21 11:33:40 -05:00
Lance Stout
f97f6e5985
More documentation for XEP-0030 plugin.
2010-12-21 11:33:03 -05:00
Lance Stout
34c374a1e1
Make tests pass for catching exceptions.
...
May now use sys.excepthook to catch exceptions
from threaded handlers.
2010-12-17 13:11:03 -05:00
Lance Stout
506eccf84d
Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop
2010-12-17 10:44:32 -05:00
Florent Le Coz
982bf3b2ec
RootStanza raises unexpected exceptions
...
We now raise the unexpected exceptions instead of sending
them on the network.
- avoids flood (sending a traceback on a MUC, for example…) and
maybe some security issues.
- lets you handle the traceback (catch it to handle
it properly, or with except_hook, etc)
- an exception cannot be raised without you knowing
2010-12-17 23:43:48 +08:00
Lance Stout
53a5026301
Almost done with xep-30; added more docs.
2010-12-16 23:52:17 -05:00
Lance Stout
0aee445e69
Use daemon threads instead of signals.
...
Daemonized threads exit once the main program has quit,
and the only threads left running are all daemon threads.
Should fix hanging clients while not trampling over anyone
else's signal handlers.
2010-12-16 22:21:50 -05:00
Lance Stout
adade2e5ec
Merge branch 'develop' into roster
2010-12-16 22:03:56 -05:00
Lance Stout
cbc42c29fb
Updated echo_client example to mention SSL options.
2010-12-16 22:00:20 -05:00
Lance Stout
874c51d74d
Added the disco browser as an example.
2010-12-16 21:58:53 -05:00
Lance Stout
f9ac95ddb7
Need to update setup.py with new XEP-0030 packages.
...
Will need to remember to update setup.py when transitioning
plugins to the new layout.
2010-12-16 21:15:13 -05:00
Lance Stout
0ea014fe41
Updated the list of plugins in sleekxmpp.plugins.__init__
2010-12-16 18:29:56 -05:00
Lance Stout
62b190d0ff
Fixed specifying 'from' values in XEP-0045 plugin.
...
Methods now accept either an ifrom or mfrom parameter
to specify a 'from' value. Client connections should not
need to use these, but component connections must use them.
2010-12-16 18:14:33 -05:00
Lance Stout
4b57b8131f
Added support for using SSL CA certificates.
...
Originally provided by Brian Beggs (macdiesel)
and Thom Nichols (tomstrummer).
2010-12-16 17:30:08 -05:00
Lance Stout
988a90a176
Added MUC invite handler to XEP-0045 plugin.
...
Originally contributed by damium/romeira, with some
modifications.
Also, converted tabs to spaces to prepare for future cleanup.
2010-12-16 16:18:49 -05:00
Lance Stout
67775fb8bd
Use boundjid in plugins instead of the deprecated accessors.
...
Originally contributed by skinkie, with a few modifications.
2010-12-16 15:38:00 -05:00
Lance Stout
e81683beee
Some Python 3.1+ compatibility fixes.
...
Originally contributed by filipegiusti.
2010-12-16 15:29:17 -05:00
Lance Stout
d9c25ee65c
Added more options to the make_iq_* methods.
...
May include a to and from JID in make_iq_* calls.
May pass an existing iq stanza to most of them instead of generating
a new stanza.
make_iq now accepts a 'to' value, 'type' value, and 'query' value to
simplify things a bit more.
2010-12-16 15:25:04 -05:00
Lance Stout
1ebc7f4d4b
Implement a few more static node handlers.
2010-12-15 19:22:21 -05:00
Lance Stout
2c5b77ae2e
And some more docs.
2010-12-15 18:57:45 -05:00
Lance Stout
d8aae88526
The documentation effort continues.
...
Also, need to start working on a replacement for the XEP-30 page in the
wiki since the API has changed significantly.
2010-12-15 17:58:15 -05:00
Lance Stout
2f4bdfee1b
Update some docs.
2010-12-13 15:58:59 -05:00
Lance Stout
c16913c999
Merge branch 'develop' into roster
...
Conflicts:
sleekxmpp/basexmpp.py
2010-12-13 14:36:53 -05:00
Lance Stout
f4451fe6b7
First pass at a new XEP-0030 plugin.
...
Now with dynamic node handling goodness.
Some things are not quite working yet, in particular:
set_items
set_info
set_identities
set_features
And still need more unit tests to round things out.
2010-12-09 18:57:27 -05:00
Lance Stout
8d4e77aba6
Fix xml:lang tostring test.
2010-12-08 00:18:04 -05:00
Lance Stout
f474d378ef
Add support for using xml:lang values.
...
Support is only for adding literal XML content
to stanzas. Full support for things like multiple
message bodies with different xml:lang values is
still in the works.
2010-12-07 23:07:40 -05:00
Lance Stout
defc252c7d
Fix several errors in SleekTest.
...
Notably, not sending an expected stanza will not silently pass.
2010-12-07 23:04:37 -05:00
Lance Stout
19bd1e0485
Actually make the Iq callbacks work for real.
2010-12-07 23:04:04 -05:00
Lance Stout
5f2fc67c40
Added option for iq.send to accept a callhandler.
...
The callback will be a stream level handler, and will not
execute in its own thread. If you must have a thread, have the
callback function raise a custom event, which can be processed
by another event handler, which may run in an individual thread,
like so:
def handle_reply(self, iq):
self.event('custom_event', iq)
def do_long_operation_in_thread(self, iq):
...
self.add_event_handler('custom_event', self.do_long_operation_in_thread)
...take out already prepared iq stanza...
iq.send(callback=self.handle_reply)
2010-12-07 17:19:39 -05:00
Lance Stout
8ead33fc3b
Fixed typo
2010-11-18 16:23:18 -05:00
Lance Stout
ab25301953
Adding stream tests for XEP-0030.
...
Fixed some errors when responding to disco requests.
2010-11-18 15:50:45 -05:00
Lance Stout
291b118aca
XEP-0030 bug fixes.
2010-11-18 11:22:11 -05:00
Lance Stout
12b61365ad
Merge branch 'develop' of github.com:fritzy/SleekXMPP into roster
2010-11-18 01:18:06 -05:00
Lance Stout
db7fb10e95
Add rename_node method to disco plugin.
2010-11-18 01:15:34 -05:00
Lance Stout
9214dc6610
Add rename_node method to disco plugin.
2010-11-18 01:12:11 -05:00
Lance Stout
58b95e4ae4
Merge branch 'develop' of github.com:fritzy/SleekXMPP into roster
2010-11-18 00:44:51 -05:00
Lance Stout
60d3afe6b6
Added __repr__ for JIDs.
2010-11-18 00:03:39 -05:00
Lance Stout
afeb8f3f7c
Made echo client print help message.
...
If the jid and password are not supplied, the options list will be
displayed instead of hanging trying to connect to a nonexistant server.
2010-11-17 17:30:53 -05:00
Lance Stout
cdbc0570ca
Added a basic example for using MUC.
2010-11-17 17:28:04 -05:00
Lance Stout
e648f08bad
Fix stream test errors.
2010-11-17 16:08:14 -05:00
Lance Stout
7ba6d5e02d
Fix Node set to None error.
2010-11-17 16:01:27 -05:00
Lance Stout
ea48bb5ac5
Fixed some live stream test errors.
...
Added test demonstrating using multiple stream clients
in a single test.
2010-11-17 15:45:16 -05:00
Lance Stout
6ee8a2980c
Fix RESPONSE_TIMEOUT dependency loops.
2010-11-17 15:13:09 -05:00
Lance Stout
debf909359
Merge branch 'develop' into roster
2010-11-17 14:33:09 -05:00
Lance Stout
b8114b25ed
Make live stream tests work better.
...
SleekTest can now use matchers when checking stanzas, using
the method parameter for self.check(), self.recv(), and self.send():
method='exact' - Same behavior as before
'xpath' - Use xpath matcher
'id' - Use ID matcher
'mask' - Use XML mask matcher
'stanzapath' - Use StanzaPath matcher
recv_feature and send_feature only accept 'exact' and 'mask' for now.
2010-11-17 13:43:15 -05:00
Lance Stout
0d4d84b2fa
Cleaned basexmpp.py
2010-11-17 10:13:45 -05:00
Lance Stout
d2aca3e7e0
Remove extraneous files.
2010-11-17 02:04:36 -05:00
Lance Stout
26aca2b789
Merge branch 'roster' of github.com:fritzy/SleekXMPP into roster
...
Conflicts:
sleekxmpp/basexmpp.py
sleekxmpp/roster.py
sleekxmpp/test/sleektest.py
tests/test_stream_presence.py
tests/test_stream_roster.py
2010-11-17 02:01:12 -05:00
Lance Stout
5424ede413
More cleanup.
2010-11-17 01:54:30 -05:00
Lance Stout
20112f8e16
More docs!
2010-11-17 01:49:51 -05:00
Lance Stout
4260a754e5
Added more docs.
2010-11-17 01:49:51 -05:00
Lance Stout
ce30f72738
Added docs for main Roster class.
2010-11-17 01:49:51 -05:00
Lance Stout
69d430dd75
Cleaned up names.
2010-11-17 01:49:51 -05:00
Lance Stout
673545c7e4
First pass at integrating the new roster manager.
2010-11-17 01:49:19 -05:00
Nathan Fritz
45991e47ee
scheduler no longer waits for the next event before exiting
2010-11-16 17:58:20 -08:00
Nathan Fritz
b8f40eb843
xep_0199 ping now uses scheduler instead of dedicated thread
2010-11-16 17:43:05 -08:00
Florent Le Coz
b73a859031
Add a groupchat_subject event
...
Use this event to get notified of the subject changes (or to get the
subject of the room when joining one)
2010-11-10 05:54:22 +08:00
Florent Le Coz
9dbf246f0b
Doesn't fail if host has NO SRV record
...
Just catch an other exception type coming from the dns resolver that
could be raised with hosts like "anon.example.com" which just don't have
any SRV record.
2010-11-09 01:53:41 +08:00
Lance Stout
4fb77ac878
Logging no longer uses root logger.
...
Each module should now log into its own logger.
2010-11-06 01:28:59 -04:00
Lance Stout
d0c506f930
Simplified SleekTest.
...
* check_stanza does not require stanza_class parameter. Introspection!
* check_message, check_iq, and check_presence removed -- use check
instead.
* stream_send_stanza, stream_send_message, stream_send_iq, and
stream_send_presence removed -- use send instead.
* Use recv instead of recv_message, recv_presence, etc.
* check_jid instead of check_JID
* stream_start may accept multi=True to return a new SleekTest instance
for testing multiple streams at once.
2010-11-05 21:18:48 -04:00
Lance Stout
7351fe1a02
Fix bug introduced while fixing another bug.
...
Threaded event handlers now handle exceptions again.
2010-11-04 14:35:35 -04:00
Nathan Fritz
38c2f51f83
fixed indent errors
2010-11-04 11:39:41 -07:00
Lance Stout
1bf34caa5b
Fixes for XEP-0199 plugin.
...
Quick fixes to get the XEP-0199 plugin working until a proper cleanup is
done.
2010-11-03 14:04:18 -04:00
Lance Stout
5769935720
Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop
2010-11-03 12:39:44 -04:00
Lance Stout
0214db7545
Catch exceptions for direct events.
...
Events triggered with direct=True will have exceptions caught.
Note that all event handlers in a direct event will currently run
in the same thread.
2010-11-03 12:38:13 -04:00
Lance Stout
ffc6f031d9
Updated namespaced used in the XEP-0199 plugin.
2010-11-03 12:37:26 -04:00
Lance Stout
9e248bb852
Fix bug in XEP-0030 plugin.
...
xep_0030 still referenced event_handlers. Added the method event_handled
which will return the number of registered handlers for an event to
resolve the issue.
2010-10-31 18:27:52 -04:00
Lance Stout
973890e2c9
Added try/except for setting signal handlers.
...
Setting signal handlers from inside a thread is not supported in Python,
but some applications need to run Sleek from a child thread.
SleekXMPP applications that run inside a child thread will NOT be able
to detect SIGHUP or SIGTERM events. Those must be caught and managed by
the main program.
2010-10-28 10:42:23 -04:00
Lance Stout
9c08e56ed0
SSL and signal fixes.
...
Made setting the SIG* handlers conditional on if the signal defined for
the OS.
Added the attribute ssl_version to XMLStream to set the version of SSL
used during connection. It defaults to ssl.PROTOCOL_TLSv1, but OpenFire
tends to require ssl.PROTOCOL_SSLv23.
2010-10-27 19:27:47 -04:00
Lance Stout
4f69a03bb1
More cleanup.
2010-10-27 15:02:21 -04:00
Lance Stout
c2c18acd6a
More docs!
2010-10-27 13:36:23 -04:00
Lance Stout
12ead36f96
Added more docs.
2010-10-27 10:51:58 -04:00
Lance Stout
41a642e06c
Added docs for main Roster class.
2010-10-27 09:27:00 -04:00
Lance Stout
c6ed4b8a1d
Cleaned up names.
2010-10-27 08:09:50 -04:00
Lance Stout
65aa6573df
First pass at integrating the new roster manager.
2010-10-26 23:47:17 -04:00
Lance Stout
b888610525
Added XEP-202 Entity Time plugin.
...
Contributed by Cesar Alcalde.
2010-10-25 21:26:25 -04:00
Lance Stout
6d68706326
Added XEP-0012 Last Activity plugin.
...
Contributed by Cesar Alcalde.
2010-10-25 20:37:02 -04:00