diff options
Diffstat (limited to 'examples/custom_stanzas/stanza.py')
-rw-r--r-- | examples/custom_stanzas/stanza.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/custom_stanzas/stanza.py b/examples/custom_stanzas/stanza.py new file mode 100644 index 00000000..ca85a0f0 --- /dev/null +++ b/examples/custom_stanzas/stanza.py @@ -0,0 +1,8 @@ +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 |