comparison src/plugins/plugin_xep_0071.py @ 1812:160b0d4c6520

plugin XEP-0071, XEP-0277: method clean_xhtml has been renamed to cleanXHTML
author souliane <souliane@mailoo.org>
date Tue, 19 Jan 2016 11:51:07 +0100
parents d17772b0fe22
children cf53e3cc702a
comparison
equal deleted inserted replaced
1811:90ae9a2462c2 1812:160b0d4c6520
116 if rich: 116 if rich:
117 d = self.synt_plg.convert(rich, syntax, self.SYNTAX_XHTML_IM) 117 d = self.synt_plg.convert(rich, syntax, self.SYNTAX_XHTML_IM)
118 if xhtml: 118 if xhtml:
119 raise exceptions.DataError(_("Can't have xhtml and rich content at the same time")) 119 raise exceptions.DataError(_("Can't have xhtml and rich content at the same time"))
120 if xhtml: 120 if xhtml:
121 d = self.synt_plg.clean_xhtml(xhtml) 121 d = self.synt_plg.cleanXHTML(xhtml)
122 d.addCallback(syntax_converted) 122 d.addCallback(syntax_converted)
123 return d 123 return d
124 124
125 def messageReceivedTrigger(self, message, post_treat, profile): 125 def messageReceivedTrigger(self, message, post_treat, profile):
126 """ Check presence of XHTML-IM in message 126 """ Check presence of XHTML-IM in message