slixmpp/examples/custom_stanzas/stanza.py
Erick Pérez Castellanos ba854e7d85 Added custom_stanza example
2012-05-14 21:47:43 -07:00

8 lines
248 B
Python

from sleekxmpp.xmlstream import ElementBase
class Action(ElementBase):
name = 'action'
namespace = 'sleekxmpp:custom:actions'
plugin_attrib = 'action'
interfaces = set(('method', 'param', 'status'))
sub_interfaces = interfaces