summaryrefslogtreecommitdiff
path: root/sleekxmpp/stanza
AgeCommit message (Collapse)Author
2014-08-30Extend AtomEntry capabilitiesMatthieu Rakotojaona
2014-02-14Allow IQ processing based on only id value before the session is bound.Lance Stout
See issue #278
2014-02-03Fix verifying 'from' for IQ results.Lance Stout
Closes issue #278
2013-02-14Resolve most Python3.3 related issues.Lance Stout
Tests now run successfully. Occasionally get single error related to duplicated payload data in pubsub items when copying stanza values.
2013-01-26Add proper XEP-0071 plugin.Lance Stout
2012-10-31Allow IQ timeouts to be asynchronous, by passing a timeout_callback ↵Joe Hildebrand
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-09-25Add options to auto add ID values to message and presence stanzas.Lance Stout
2012-09-01Map <group /> elements with no content to '' instead of None.Lance Stout
2012-07-23Add 'by' attribute for error stanzas.Lance Stout
2012-06-22Add 'thread' and 'parent_thread' interfaces to message stanzas.Lance Stout
These values are perisisted across replies.
2012-06-22Mark presence status as language aware.Lance Stout
2012-06-22Mark message body and subject as language aware interfaces.Lance Stout
2012-06-19Fix assigning values to error stanzas.Lance Stout
The new data interfaces were deleting the actual error conditions if they were set afterward with falsy data.
2012-06-19Remove usage of deprecated getchildren() method.Lance Stout
2012-06-19PEP8 formatting updates.Lance Stout
2012-06-18Add support for error conditions that include data.Lance Stout
2012-06-18Update stream features stanza to work with new plugin keys.Lance Stout
2012-06-18Add initial support for xml:lang for streams and stanza plugins.Lance Stout
Remaining items are suitable default actions for language supporting interfaces.
2012-04-08Undo the additional Iq result checks until further testing is done.Lance Stout
Revert "Check for Iq results based on both the sender's JID and the ID value." This reverts commit 9ffde5ab3706ca24b03dbea93c67810687c4b6ba.
2012-04-08Check for Iq results based on both the sender's JID and the ID value.Lance Stout
2012-03-30Fix typoLance Stout
2012-03-11Expand support of XEP-0172 (user nickname) to include PEP.Lance Stout
2012-03-07Add support for roster versioning.Lance Stout
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-02-18More import cleanup based on pyflakes.Lance Stout
2012-02-18Use JID objects when dealing with roster items.Lance Stout
2012-01-12Update Roster stanza to use RosterItem substanzas.Lance Stout
get_roster() now returns the Iq result stanza instead of True (stanzas also evaluate to True).
2011-12-30Merge pull request #130 from rhcarvalho/masterLance Stout
Some small fixes
2011-12-30Fix docstring of a method of Message stanzas.Rodolfo Carvalho
2011-11-20This change stops sleekxmpp from spending huge amounts of time unnecessarily ↵Vijay Pandurangan
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-08-31Added pubsub error stanza.Lance Stout
iq['error']['pubsub']['condition'] iq['error']['pubsub']['unsupported']
2011-08-19Make Iq exceptions more discoverable and simpler to use.Lance Stout
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-12Merge branch 'develop' into rosterLance Stout
Conflicts: setup.py sleekxmpp/clientxmpp.py
2011-08-12Merge branch 'develop' of github.com:fritzy/SleekXMPP into developNathan Fritz
2011-08-12Merge branch 'exceptions' into developNathan Fritz
2011-08-06Fix XEP-0078 using the new stream feature workflow.Lance Stout
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-04Merge branch 'develop' into rosterLance Stout
Conflicts: setup.py
2011-07-03Merge branch 'develop' into exceptionsLance Stout
2011-07-02Fix ordering bug when retrieving an error condition.Lance Stout
2011-07-02Simplify SASL mech registration.Lance Stout
Moved SASL registration completely to the feature plugin, instead of keeping a portion of it in ClientXMPP.
2011-07-01Merge branch 'develop' into stream_featuresLance Stout
2011-07-01Merge branch 'develop' into rosterLance Stout
2011-07-01So using sys.excepthook to catch errors only works once.Lance Stout
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-01Continued reorganization and streamlining.Lance Stout
2011-06-28Reorganized stream level stanzas.Lance Stout
2011-06-20Merge branch 'develop' into stream_featuresLance Stout
2011-06-20Merge branch 'develop' into exceptionsLance Stout
2011-06-20Merge branch 'develop' into rosterLance Stout
2011-06-20Fix stanza clobbering when replying to errors.sleek-1.0.0-beta5sleek-1.0-Beta51.0.0-beta51.0-Beta5Lance Stout
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-01IqTimeout now references the original sent stanza.Lance Stout
A little extra bit of docs for IqError.
2011-06-01Begin experimental use of exceptions.Lance Stout
Provides IqTimeout and IqError which are raised when an Iq response does not arrive in time, or it arrives with type='error'.