summaryrefslogtreecommitdiff
path: root/examples/custom_stanzas/stanza.py
diff options
context:
space:
mode:
authorErick PĂ©rez Castellanos <erick.red@gmail.com>2012-04-12 11:06:03 -0400
committerLance Stout <lancestout@gmail.com>2012-05-14 21:47:43 -0700
commitba854e7d85870dd90307c0c2f408d10d83e4fc33 (patch)
treefbd70ed36911b283de0f8034a770f84de70ff968 /examples/custom_stanzas/stanza.py
parent4ded34ebc95e92acab4a9ac760d91e500497bf80 (diff)
downloadslixmpp-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.py8
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