SleekXMPP/sleekxmpp/plugins
Lance Stout 8e3227ae5e 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-06-01 22:07:53 +08:00
..
__init__.py moved seesmic branch to trunk 2009-06-03 22:56:51 +00:00
base.py plugins now are checked for post_init having ran when process() is called 2010-06-01 22:07:51 +08:00
gmail_notify.py replaced usage of deprecated iq result on send. Fixed old send result to use stanzas instead of ElementTree 2010-04-07 23:10:32 -07:00
stanza_pubsub.py added pubsub state stanzas and scheduled events 2010-06-01 22:07:52 +08:00
xep_0004.py added pubsub state stanzas and scheduled events 2010-06-01 22:07:52 +08:00
xep_0009.py plugins now are checked for post_init having ran when process() is called 2010-06-01 22:07:51 +08:00
xep_0030.py Updated the XEP-0030 plugin to work with stanza objects instead of manipulating XML directly. 2010-06-01 22:07:53 +08:00
xep_0045.py fixed a rather large memory leak 2010-05-14 01:47:19 +08:00
xep_0050.py plugins now are checked for post_init having ran when process() is called 2010-06-01 22:07:51 +08:00
xep_0060.py added pubsub state stanzas and scheduled events 2010-06-01 22:07:52 +08:00
xep_0078.py replaced usage of deprecated iq result on send. Fixed old send result to use stanzas instead of ElementTree 2010-04-07 23:10:32 -07:00
xep_0086.py * converted sleekxmpp to Python 3.x 2009-08-31 22:46:31 +00:00
xep_0092.py plugins now are checked for post_init having ran when process() is called 2010-06-01 22:07:51 +08:00
xep_0199.py plugins now are checked for post_init having ran when process() is called 2010-06-01 22:07:51 +08:00