Added custom_stanza example

This commit is contained in:
Erick Pérez Castellanos
2012-04-12 11:06:03 -04:00
committed by Lance Stout
parent 4ded34ebc9
commit ba854e7d85
3 changed files with 326 additions and 0 deletions

View File

@@ -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