Commit 8fc703e2 authored by Fabien Morin's avatar Fabien Morin

'' is false so validator.show_warnings and '' is always false and display...

'' is false so validator.show_warnings and '' is always false and display always that warnings are not displayed. Now it works correctly.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24086 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f96fe7f4
......@@ -238,8 +238,9 @@ def validate_xhtml(validator, source, view_name, bt_name):
# display some information when test faild to facilitate debugging
message = []
message.append('Using %s validator to parse the view "%s" (from %s bt) with warning %s displayed :' %\
(validator.name, view_name, bt_name, validator.show_warnings and '' or 'NOT'))
message.append('Using %s validator to parse the view "%s" (from %s bt) with warning %sdisplayed :' %\
(validator.name, view_name, bt_name,
validator.show_warnings and ' ' or 'NOT '))
error_list, warning_list = validator.getErrorAndWarningList(source)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment