diff options
author | Erick PĂ©rez Castellanos <erick.red@gmail.com> | 2012-04-12 11:06:03 -0400 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-05-14 21:47:43 -0700 |
commit | ba854e7d85870dd90307c0c2f408d10d83e4fc33 (patch) | |
tree | fbd70ed36911b283de0f8034a770f84de70ff968 /examples/custom_stanzas/stanza.py | |
parent | 4ded34ebc95e92acab4a9ac760d91e500497bf80 (diff) | |
download | slixmpp-ba854e7d85870dd90307c0c2f408d10d83e4fc33.tar.gz slixmpp-ba854e7d85870dd90307c0c2f408d10d83e4fc33.tar.bz2 slixmpp-ba854e7d85870dd90307c0c2f408d10d83e4fc33.tar.xz slixmpp-ba854e7d85870dd90307c0c2f408d10d83e4fc33.zip |
Added custom_stanza example
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 |