adding tests, fixed stanzapath matching to match keys, fixed pubsub#owner stanzas
This commit is contained in:
@@ -16,6 +16,7 @@ class Iq(RootStanza):
|
||||
interfaces = set(('type', 'to', 'from', 'id','query'))
|
||||
types = set(('get', 'result', 'set', 'error'))
|
||||
name = 'iq'
|
||||
plugin_attrib = name
|
||||
namespace = 'jabber:client'
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
||||
@@ -15,6 +15,7 @@ class Message(RootStanza):
|
||||
types = set((None, 'normal', 'chat', 'headline', 'error', 'groupchat'))
|
||||
sub_interfaces = set(('body', 'subject'))
|
||||
name = 'message'
|
||||
plugin_attrib = name
|
||||
namespace = 'jabber:client'
|
||||
|
||||
def getType(self):
|
||||
|
||||
@@ -16,6 +16,7 @@ class Presence(RootStanza):
|
||||
showtypes = set(('dnd', 'chat', 'xa', 'away'))
|
||||
sub_interfaces = set(('status', 'priority'))
|
||||
name = 'presence'
|
||||
plugin_attrib = name
|
||||
namespace = 'jabber:client'
|
||||
|
||||
def getShowElement(self):
|
||||
|
||||
Reference in New Issue
Block a user