From dc501d19023f2d2409b7383e8c860a90ff0ecaf6 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Fri, 22 Jun 2012 19:08:51 -0700 Subject: Mark message body and subject as language aware interfaces. --- sleekxmpp/stanza/message.py | 11 ++++++----- 1 file 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): """ -- cgit v1.2.3