From ba854e7d85870dd90307c0c2f408d10d83e4fc33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erick=20P=C3=A9rez=20Castellanos?= Date: Thu, 12 Apr 2012 11:06:03 -0400 Subject: Added custom_stanza example --- examples/custom_stanzas/stanza.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 examples/custom_stanzas/stanza.py (limited to 'examples/custom_stanzas/stanza.py') 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 -- cgit v1.2.3