summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-02-24Remove the filesocket shim (2.6 compatibility)mathieui
2015-02-23Add back stanza-specific exception handlersmathieui
(fixes the test suite too)
2015-02-23Import xmlstream.asyncio and coroutine_wrapper at the top levelmathieui
Since they will be used quite a lot in plugins.
2015-02-23Add a coroutine_wrapper decoratormathieui
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-23Add a coroutine parameter to iq.send() to return a coroutinemathieui
(instead of exposing a different send_coroutine method)
2015-02-22Use CallbackCoroutine with Iq callbacks toomathieui
2015-02-22Allow event handlers to be coroutine functionsmathieui
And do not copy data when running events with XMLStream.event()
2015-02-21Add a “blocking” send_coroutine method to the Iq classmathieui
2015-02-17Check that ciphers have been initializedmathieui
(if not, python will use the system default)
2015-02-12Update the test suite.mathieui
- 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-12Remove more threaded= and block= options from the pluginsmathieui
(also, correct a typo)
2015-02-12Do the plugins post_init() upload loadingmathieui
(the top_level boolean used to load them at this point wasn’t ever set to true)
2015-02-12Fix the uses of stanza.reply()mathieui
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-12Fix the componentxmpp interfacemathieui
2015-02-04XMLStream must provide the BaseProtocol interfaceFlorent Le Coz
2015-02-04Don’t set the msg['from'] and msg['id'] in receipt.ack()mathieui
setting msg['id'] is wrong, and setting msg['from'] might lead to echoing back wrong input.
2015-01-15Expose MUC support in disco#infomathieui
http://xmpp.org/extensions/xep-0045.html#disco-client
2015-01-05Fix the call of iscoroutinefunction()Florent Le Coz
2015-01-03Do not copy the stanza before calling each handlerexp_idle_callFlorent Le Coz
2015-01-03Use a deque for the idle listFlorent Le Coz
2015-01-03Delay the handling of stanza for when the process is not busyFlorent Le Coz
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)
2014-12-17Make the ca_certs option useful again (CA-based cert validation)mathieui
It was broken since the fork.
2014-12-11Bring back authentication through SASL EXTERNALmathieui
(and only update the ssl context before it gets used)
2014-12-11Fix xep-0257 for slixmpp, and fix an element namemathieui
2014-11-14Lower the timeout for each DNS resolution attemptFlorent Le Coz
2014-11-12Let loop.create_connection do its getaddrinfo coroutine if there are no dns ↵mathieui
records left/available
2014-11-05Also work without SRV recordsFlorent Le Coz
2014-11-03Depend on aiodns and not dnspython in the setup.pymathieui
2014-11-02Fix default value of dns_answers to None (instead of [])Florent Le Coz
2014-11-02Use aiodns instead of dnspython to query DNS recordsmathieui
2014-10-30Add the ssl_cert and ssl_invalid_chain backmathieui
- hack the stdlib to get the peercert, remove that hack when http://bugs.python.org/issue22768 gets fixed
2014-10-30Make the "ciphers" option work againmathieui
2014-10-30Remove the ssl_version option, as the defaults in python3.4 are sanemathieui
2014-10-11Something something get_stanza_valuesFlorent Le Coz
Fix something that was broken by Link Mauve
2014-09-28Remove all deprecated alias in the core of slixmpp, and wherever they were used.Emmanuel Gil Peyrot
2014-09-28Remove the now useless Queue wrapper in slixmpp.util.Emmanuel Gil Peyrot
2014-09-28Don’t check for logging.NullHandler, it got added in Python 3.1.Emmanuel Gil Peyrot
2014-09-28Don’t set the wait time to True instead of leaving its float default, in ↵Emmanuel Gil Peyrot
examples.
2014-09-01Improve run_tests.py, allowing it to run only specific tests.Emmanuel Gil Peyrot
2014-09-01Remove useless ez_setup.py file, we use setuptools in the normal setup.py ↵Emmanuel Gil Peyrot
instead.
2014-09-01Clean setup.py, using modern 3.4 features.Emmanuel Gil Peyrot
2014-09-01Remove support for gevent, incompatible with python3.Emmanuel Gil Peyrot
2014-09-01Fix indentation in xep_0016.Emmanuel Gil Peyrot
2014-09-01Remove all trailing semicolons.Emmanuel Gil Peyrot
2014-09-01Remove all trailing whitespaces.Emmanuel Gil Peyrot
2014-09-01Always use OrderedDict from collections, and remove its implementation in ↵Emmanuel Gil Peyrot
slixmpp.thirdparty.
2014-09-01Move examples from the deprecated optparse to argparse, and remove the ↵Emmanuel Gil Peyrot
redundant -v option.
2014-09-01Import getpass from getpass, instead of using getpass.getpass everytime.Emmanuel Gil Peyrot
2014-09-01Remove (usually) useless comments in examples about OpenFire and how to ↵Emmanuel Gil Peyrot
verify a certificate.
2014-09-01Reintroduce XMLStream.process, making it run the asyncio event loop.Emmanuel Gil Peyrot