summaryrefslogtreecommitdiff
path: root/sleekxmpp/stanza/iq.py
AgeCommit message (Collapse)Author
2014-07-17Rename to slixmppFlorent Le Coz
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.
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-06-19Remove usage of deprecated getchildren() method.Lance Stout
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-02-18More import cleanup based on pyflakes.Lance Stout
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'.
2011-05-27Don't use the send queue for stream initialization.Lance Stout
Use the parameter now=True to skip the queue when sending Iq stanzas, or using xmpp.send().
2011-04-08Use underscore method name.Lance Stout
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-02-14Remap old method names in a better way.Lance Stout
This should prevent some reference cycles that will cause garbage collection issues.
2011-02-13Return the name of the registered callback.Lance Stout
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-12Return the registered callback when using iq.send(callback=foo).Lance Stout
Allows for a callback to be canceled by unregistering the returned handler.
2011-02-11XMPPError exceptions can keep a stanza's contents.Lance Stout
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-01-16Add StreamError stanza and a stream_error event.Lance Stout
Note that the stream may automatically attempt to reconnect when a stream error is received.
2011-01-12Fix ordering error in Iq._set_stanza_values.Lance Stout
If iq['query'] was set before a plugin that used the query element was set, then the query element was duplicated.
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-17Fix RESPONSE_TIMEOUT dependency loops.Lance Stout
2010-10-17Underscore names by default.Lance Stout
Stanza objects now accept the use of underscored names. The CamelCase versions are still available for backwards compatibility, but are discouraged. The property stanza.values now maps to the old getStanzaValues and setStanzaValues, in addition to _set_stanza_values and _get_stanza_values.
2010-07-30Added optional default value to _getAttr.Lance Stout
2010-07-29Updated, cleaned, and documented Iq stanza class. Also added unit tests.Lance Stout
2010-07-20Updated license notices to use the correct MIT format. Also corrected ↵Lance Stout
references to nonexistant license.txt to LICENSE.
2010-05-25Modified the return values for several methods so that they can be chained.Lance Stout
For example: iq.reply().error().setPayload(something.xml).send()
2010-04-14adding tests, fixed stanzapath matching to match keys, fixed pubsub#owner ↵Nathan Fritz
stanzas
2010-03-26changed license to MITsleek-0.9RC10.9RC1Nathan Fritz
2010-02-15got rid of stupid iq set/get/error/result methodsNathan Fritz
2010-01-20unhandled iq's should only respond to errors when type=get/setNathan Fritz
2010-01-08* added first stanza testsNathan Fritz
* added stanza.keys() * stanza.getValues() now return substanzas and plugins * stanza.setValues() now can read substanzas and plugins * stanzas can now be iterable if stanza.subitem is set to a class
2010-01-05* major stanza improvementsNathan Fritz
* raise XMPPError in handler to reply with error stanza * started work on pubsub stanzas
2009-12-22* fixed unhandled iqsNathan Fritz
2009-12-17* fixed many stanza bugsNathan Fritz
* added stanza unhandled (unhandled iqs now reply with feature-not-implemented) * added stanza exceptions (stanzas may now reply with exceptions when their handler raises an exception)
2009-12-11* started converstion to stanza objectsNathan Fritz
2009-12-10* added proper message and iq stanzas. presence left to doNathan Fritz
2009-06-03moved seesmic branch to trunkNathan Fritz