Added custom_stanza example
This commit is contained in:
committed by
Lance Stout
parent
4ded34ebc9
commit
ba854e7d85
8
examples/custom_stanzas/stanza.py
Normal file
8
examples/custom_stanzas/stanza.py
Normal 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
|
||||
Reference in New Issue
Block a user