summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-12-16Need to update setup.py with new XEP-0030 packages.Lance Stout
Will need to remember to update setup.py when transitioning plugins to the new layout.
2010-12-16Updated the list of plugins in sleekxmpp.plugins.__init__Lance Stout
2010-12-16Fixed specifying 'from' values in XEP-0045 plugin.Lance Stout
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-16Added support for using SSL CA certificates.Lance Stout
Originally provided by Brian Beggs (macdiesel) and Thom Nichols (tomstrummer).
2010-12-16Added MUC invite handler to XEP-0045 plugin.Lance Stout
Originally contributed by damium/romeira, with some modifications. Also, converted tabs to spaces to prepare for future cleanup.
2010-12-16Use boundjid in plugins instead of the deprecated accessors.Lance Stout
Originally contributed by skinkie, with a few modifications.
2010-12-16Some Python 3.1+ compatibility fixes.Lance Stout
Originally contributed by filipegiusti.
2010-12-16Added more options to the make_iq_* methods.Lance Stout
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-15Implement a few more static node handlers.Lance Stout
2010-12-15And some more docs.Lance Stout
2010-12-15The documentation effort continues.Lance Stout
Also, need to start working on a replacement for the XEP-30 page in the wiki since the API has changed significantly.
2010-12-13Update some docs.Lance Stout
2010-12-09First pass at a new XEP-0030 plugin.Lance Stout
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-08Fix xml:lang tostring test.Lance Stout
2010-12-07Add support for using xml:lang values.Lance Stout
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-07Fix several errors in SleekTest.Lance Stout
Notably, not sending an expected stanza will not silently pass.
2010-12-07Actually make the Iq callbacks work for real.Lance Stout
2010-12-07Added option for iq.send to accept a callhandler.Lance Stout
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-11-18Fixed typoLance Stout
2010-11-18Adding stream tests for XEP-0030.Lance Stout
Fixed some errors when responding to disco requests.
2010-11-18XEP-0030 bug fixes.Lance Stout
2010-11-18Add rename_node method to disco plugin.Lance Stout
2010-11-18Added __repr__ for JIDs.Lance Stout
2010-11-17Made echo client print help message.Lance Stout
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-17Added a basic example for using MUC.Lance Stout
2010-11-17Fix stream test errors.Lance Stout
2010-11-17Fix Node set to None error.Lance Stout
2010-11-17Fixed some live stream test errors.Lance Stout
Added test demonstrating using multiple stream clients in a single test.
2010-11-17Fix RESPONSE_TIMEOUT dependency loops.Lance Stout
2010-11-17Make live stream tests work better.Lance Stout
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-16scheduler no longer waits for the next event before exitingsleek-1.0-Beta41.0-Beta4Nathan Fritz
2010-11-16xep_0199 ping now uses scheduler instead of dedicated threadsleek-1.0-Beta31.0-Beta3Nathan Fritz
2010-11-10Add a groupchat_subject eventFlorent Le Coz
Use this event to get notified of the subject changes (or to get the subject of the room when joining one)
2010-11-09Doesn't fail if host has NO SRV recordFlorent Le Coz
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-06Logging no longer uses root logger.Lance Stout
Each module should now log into its own logger.
2010-11-05Simplified SleekTest.Lance Stout
* 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-04Fix bug introduced while fixing another bug.Lance Stout
Threaded event handlers now handle exceptions again.
2010-11-04fixed indent errorsNathan Fritz
2010-11-03Fixes for XEP-0199 plugin.Lance Stout
Quick fixes to get the XEP-0199 plugin working until a proper cleanup is done.
2010-11-03Merge branch 'develop' of github.com:fritzy/SleekXMPP into developLance Stout
2010-11-03Catch exceptions for direct events.Lance Stout
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-03Updated namespaced used in the XEP-0199 plugin.Lance Stout
2010-10-31Fix bug in XEP-0030 plugin.Lance Stout
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-28Added try/except for setting signal handlers.Lance Stout
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-27SSL and signal fixes.Lance Stout
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-25Added XEP-202 Entity Time plugin.Lance Stout
Contributed by Cesar Alcalde.
2010-10-25Added XEP-0012 Last Activity plugin.Lance Stout
Contributed by Cesar Alcalde.
2010-10-25Made exceptions work.sleek-1.0-Beta21.0-Beta2Lance Stout
Raising an XMPPError exception from an event handler now works, even if from a threaded handler. Added stream tests to verify. We should start using XMPPError, it really makes things simple!
2010-10-25Added more presence stream tests.Lance Stout
Tests auto_authorize=False, and got_online.
2010-10-25Fixed bug in presence subscription handling.Lance Stout
Subscription requests and responses were not setting the correct 'to' attribute.