# HG changeset patch # User Sylvain Thénault # Date 1294155262 -3600 # Node ID 68bb0943d1925f622009cfbe3d8b87fe9ae90d2c # Parent da71f1ad17218c31d6353923a990e63b0b1cf330 [test, html validation] make validator selection somewhat smarter (at least it works properly when content is demoted from xhtml to html, making the XMLDemotingValidator class useless diff -r da71f1ad1721 -r 68bb0943d192 devtools/htmlparser.py --- a/devtools/htmlparser.py Tue Jan 04 16:33:01 2011 +0100 +++ b/devtools/htmlparser.py Tue Jan 04 16:34:22 2011 +0100 @@ -22,6 +22,8 @@ from lxml import etree +from logilab.common.deprecation import class_deprecated + from cubicweb.view import STRICT_DOCTYPE, TRANSITIONAL_DOCTYPE STRICT_DOCTYPE = str(STRICT_DOCTYPE) @@ -90,6 +92,7 @@ this is typically related to the use of external dependencies which do not produce valid xhtml (google maps, ...) """ + __metaclass__ = class_deprecated def preprocess_data(self, data): if data.startswith(' used in progress widget, unknown in html dtd