diff options
author | Nathan Fritz <nathan@andyet.net> | 2010-04-20 00:53:13 -0700 |
---|---|---|
committer | Nathan Fritz <nathan@andyet.net> | 2010-04-20 00:53:13 -0700 |
commit | 2a30e3fe0c397bc1111449c2980e77e67d9114c1 (patch) | |
tree | a2a386ed0faad4f2c34a08b7ca375033b42ad8d4 /sleekxmpp/plugins | |
parent | 212660091f155255ee9f45cdfca7969d8313309c (diff) | |
download | slixmpp-2a30e3fe0c397bc1111449c2980e77e67d9114c1.tar.gz slixmpp-2a30e3fe0c397bc1111449c2980e77e67d9114c1.tar.bz2 slixmpp-2a30e3fe0c397bc1111449c2980e77e67d9114c1.tar.xz slixmpp-2a30e3fe0c397bc1111449c2980e77e67d9114c1.zip |
started work on pubsub#event stanzas
Diffstat (limited to 'sleekxmpp/plugins')
-rw-r--r-- | sleekxmpp/plugins/stanza_pubsub.py | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/sleekxmpp/plugins/stanza_pubsub.py b/sleekxmpp/plugins/stanza_pubsub.py index d25c2b3a..13345947 100644 --- a/sleekxmpp/plugins/stanza_pubsub.py +++ b/sleekxmpp/plugins/stanza_pubsub.py @@ -1,5 +1,6 @@ from .. xmlstream.stanzabase import ElementBase, ET, JID from .. stanza.iq import Iq +from .. stanza.message import Message from .. basexmpp import basexmpp from .. xmlstream.xmlstream import XMLStream import logging @@ -463,3 +464,33 @@ class OwnerSubscription(ElementBase): def getJid(self): return JID(self._getAttr('from')) + +class Event(ElementBase): + namespace = 'http://jabber.org/protocol/pubsub#event' + name = 'event' + plugin_attrib = 'pubsub_event' + interfaces = set(('node',)) + plugin_attrib_map = {} + plugin_tag_map = {} + +stanzaPlugin(Message, Event) + +class EventItems(ElementBase): + namespace = 'http://jabber.org/protocol/pubsub#event' + name = 'items' + plugin_attrib = 'items' + interfaces = set(tuple()) + plugin_attrib_map = {} + plugin_tag_map = {} + +stanzaPlugin(Event, EventItems) + +class EventItem(ElementBase): + namespace = 'http://jabber.org/protocol/pubsub#event' + name = 'item' + plugin_attrib = 'item' + interfaces = set(tuple()) + plugin_attrib_map = {} + plugin_tag_map = {} + +stanzaPlugin(Event, EventItems) |