diff options
author | Lance Stout <lancestout@gmail.com> | 2012-06-22 23:17:15 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-06-22 23:17:15 -0700 |
commit | 5d6019a962fd1a30ed04520892836cdecc7fe19f (patch) | |
tree | 6ee7b956a813af2f0507867dc861f4aead3479e2 /sleekxmpp/stanza/presence.py | |
parent | eb5df1aa3722e6e85b9683805b4088f4340918aa (diff) | |
parent | 85ef2d8d0bcc92cd20d857d01bcf1bba56bc8edf (diff) | |
download | slixmpp-5d6019a962fd1a30ed04520892836cdecc7fe19f.tar.gz slixmpp-5d6019a962fd1a30ed04520892836cdecc7fe19f.tar.bz2 slixmpp-5d6019a962fd1a30ed04520892836cdecc7fe19f.tar.xz slixmpp-5d6019a962fd1a30ed04520892836cdecc7fe19f.zip |
Merge branch 'master' into develop
Diffstat (limited to 'sleekxmpp/stanza/presence.py')
-rw-r--r-- | sleekxmpp/stanza/presence.py | 17 |
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): """ |