summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-06-22 19:08:51 -0700
committerLance Stout <lancestout@gmail.com>2012-06-22 19:08:51 -0700
commitdc501d19023f2d2409b7383e8c860a90ff0ecaf6 (patch)
tree4a52547319c1e154a0dde6fbd760da6e358fabda
parent100e504b7fdcb889f20abbb2b4843fb01e0d267c (diff)
downloadslixmpp-dc501d19023f2d2409b7383e8c860a90ff0ecaf6.tar.gz
slixmpp-dc501d19023f2d2409b7383e8c860a90ff0ecaf6.tar.bz2
slixmpp-dc501d19023f2d2409b7383e8c860a90ff0ecaf6.tar.xz
slixmpp-dc501d19023f2d2409b7383e8c860a90ff0ecaf6.zip
Mark message body and subject as language aware interfaces.
-rw-r--r--sleekxmpp/stanza/message.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/sleekxmpp/stanza/message.py b/sleekxmpp/stanza/message.py
index 407802bd..992d7b7b 100644
--- a/sleekxmpp/stanza/message.py
+++ b/sleekxmpp/stanza/message.py
@@ -54,13 +54,14 @@ class Message(RootStanza):
del_mucnick -- Dummy method to prevent deletion.
"""
- namespace = 'jabber:client'
name = 'message'
- interfaces = set(('type', 'to', 'from', 'id', 'body', 'subject',
- 'mucroom', 'mucnick'))
- sub_interfaces = set(('body', 'subject'))
+ namespace = 'jabber:client'
plugin_attrib = name
- types = set((None, 'normal', 'chat', 'headline', 'error', 'groupchat'))
+ interfaces = set(['type', 'to', 'from', 'id', 'body', 'subject',
+ 'mucroom', 'mucnick'])
+ sub_interfaces = set(['body', 'subject'])
+ lang_interfaces = sub_interfaces
+ types = set([None, 'normal', 'chat', 'headline', 'error', 'groupchat'])
def get_type(self):
"""