summaryrefslogtreecommitdiff
path: root/sleekxmpp/stanza/presence.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-06-22 20:05:17 -0700
committerLance Stout <lancestout@gmail.com>2012-06-22 20:05:17 -0700
commit9cec284947a957b2d335ff528d0c3c037f3a6dfe (patch)
tree3afeceaf88d76ec30737605081c162be0e820841 /sleekxmpp/stanza/presence.py
parentdc501d19023f2d2409b7383e8c860a90ff0ecaf6 (diff)
downloadslixmpp-9cec284947a957b2d335ff528d0c3c037f3a6dfe.tar.gz
slixmpp-9cec284947a957b2d335ff528d0c3c037f3a6dfe.tar.bz2
slixmpp-9cec284947a957b2d335ff528d0c3c037f3a6dfe.tar.xz
slixmpp-9cec284947a957b2d335ff528d0c3c037f3a6dfe.zip
Mark presence status as language aware.
Diffstat (limited to 'sleekxmpp/stanza/presence.py')
-rw-r--r--sleekxmpp/stanza/presence.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/sleekxmpp/stanza/presence.py b/sleekxmpp/stanza/presence.py
index f2dd0968..7951f861 100644
--- a/sleekxmpp/stanza/presence.py
+++ b/sleekxmpp/stanza/presence.py
@@ -60,16 +60,17 @@ class Presence(RootStanza):
set_priority -- Set the value of the <priority> element.
"""
- namespace = 'jabber:client'
name = 'presence'
- interfaces = set(('type', 'to', 'from', 'id', 'show',
- 'status', 'priority'))
- sub_interfaces = set(('show', 'status', 'priority'))
+ namespace = 'jabber:client'
plugin_attrib = name
-
- types = set(('available', 'unavailable', 'error', 'probe', 'subscribe',
- 'subscribed', 'unsubscribe', 'unsubscribed'))
- showtypes = set(('dnd', 'chat', 'xa', 'away'))
+ 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',
+ 'subscribed', 'unsubscribe', 'unsubscribed'])
+ showtypes = set(['dnd', 'chat', 'xa', 'away'])
def exception(self, e):
"""