SleekXMPP/sleekxmpp
Lance Stout fd573880eb Updated the XEP-0030 plugin to work with stanza objects instead of manipulating XML directly.
Four new events have been added:
  disco_info - A disco#info result has been received
  disco_info_request - A disco#info request has been received
  disco_items - A disco#items result has been received
  disco_items_request - A disco#items request has been received

For disco_info_request and disco_items_request two default handlers are registered. These handlers will only run if they are the only handler for these two events so that multiple responses are not returned and cause errors.

In your own handlers for these two events, you can call the default handlers to preserve the static node behaviour as so:
  self.plugin['xep_0030'].handle_disco_info(iq, True)

The forwarded=True will disable the check for other registered handlers.

Agents can now dynamically respond to disco requests by using these events.
(cherry picked from commit 0fc3381492a8bd75e6a9858539a972334881d8ff)
2010-05-31 05:30:45 +08:00
..
plugins Updated the XEP-0030 plugin to work with stanza objects instead of manipulating XML directly. 2010-05-31 05:30:45 +08:00
stanza Modified the return values for several methods so that they can be chained. 2010-05-25 07:28:43 +08:00
tests fixed pubsub test 2009-06-12 19:27:29 +00:00
xmlstream control-c fixes 2010-05-28 19:19:28 -07:00
__init__.py fixed dns unicode problem 2010-05-26 11:37:01 -07:00
basexmpp.py plugins now are checked for post_init having ran when process() is called 2010-05-26 10:51:51 -07:00
component_example.py brought components over to python 3.x 2009-08-31 23:02:19 +00:00
componentxmpp.py updated README, index fix for component 2010-05-24 19:33:24 -07:00
exceptions.py changed license to MIT 2010-03-26 14:32:16 -07:00