diff src/plugins/plugin_xep_0277.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 fed95a6c56f8
children 602a47ccc07c
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0277.py	Tue Jan 19 11:49:25 2016 +0100
+++ b/src/plugins/plugin_xep_0277.py	Tue Jan 19 11:51:07 2016 +0100
@@ -177,7 +177,7 @@
                     raise failure.Failure(exceptions.DataError(_('Content of type XHTML must declare its namespace!')))
                 key = check_conflict(u'{}_xhtml'.format(elem.name))
                 data = data_elt.toXml()
-                microblog_data[key] = yield self.host.plugins["TEXT-SYNTAXES"].clean_xhtml(data)
+                microblog_data[key] = yield self.host.plugins["TEXT-SYNTAXES"].cleanXHTML(data)
             else:
                 key = check_conflict(elem.name)
                 microblog_data[key] = unicode(elem)
@@ -365,7 +365,7 @@
                             if '{}_xhtml'.format(elem_name) in data:
                                 raise failure.Failure(exceptions.DataError(_("Can't have xhtml and rich content at the same time")))
                         else:  # clean the XHTML input
-                            converted = yield synt.clean_xhtml(data[attr])
+                            converted = yield synt.cleanXHTML(data[attr])
 
                         xml_content = u'<div xmlns="{ns}">{converted}</div>'.format(
                                         ns=NS_XHTML,