Mark message body and subject as language aware interfaces.

This commit is contained in:
Lance Stout 2012-06-22 19:08:51 -07:00
parent 100e504b7f
commit dc501d1902

View file

@ -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):
"""