Mark presence status as language aware.
This commit is contained in:
parent
dc501d1902
commit
9cec284947
1 changed files with 8 additions and 7 deletions
|
@ -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):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue