Mark presence status as language aware.

This commit is contained in:
Lance Stout 2012-06-22 20:05:17 -07:00
parent dc501d1902
commit 9cec284947

View file

@ -60,16 +60,17 @@ class Presence(RootStanza):
set_priority -- Set the value of the <priority> element. set_priority -- Set the value of the <priority> element.
""" """
namespace = 'jabber:client'
name = 'presence' name = 'presence'
interfaces = set(('type', 'to', 'from', 'id', 'show', namespace = 'jabber:client'
'status', 'priority'))
sub_interfaces = set(('show', 'status', 'priority'))
plugin_attrib = name plugin_attrib = name
interfaces = set(['type', 'to', 'from', 'id', 'show',
'status', 'priority'])
sub_interfaces = set(['show', 'status', 'priority'])
lang_interfaces = set(['status'])
types = set(('available', 'unavailable', 'error', 'probe', 'subscribe', types = set(['available', 'unavailable', 'error', 'probe', 'subscribe',
'subscribed', 'unsubscribe', 'unsubscribed')) 'subscribed', 'unsubscribe', 'unsubscribed'])
showtypes = set(('dnd', 'chat', 'xa', 'away')) showtypes = set(['dnd', 'chat', 'xa', 'away'])
def exception(self, e): def exception(self, e):
""" """