Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Hardik Juneja
erp5
Commits
01e71ab1
Commit
01e71ab1
authored
Jun 07, 2011
by
Leonardo Rochael Almeida
Committed by
Julien Muchembled
Oct 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix error when w3c validator can't be found
parent
27c9cd62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
product/ERP5/tests/testXHTML.py
product/ERP5/tests/testXHTML.py
+3
-2
No files found.
product/ERP5/tests/testXHTML.py
View file @
01e71ab1
...
...
@@ -637,13 +637,14 @@ validator = None
# create the validator object
if
validator_to_use
==
'w3c'
:
default
=
'/usr/share/w3c-markup-validator/cgi-bin:/usr/lib/cgi-bin'
for
path
in
os
.
environ
.
get
(
'CGI_PATH'
,
default
).
split
(
os
.
pathsep
):
validator_path_list
=
os
.
environ
.
get
(
'CGI_PATH'
,
default
).
split
(
os
.
pathsep
)
for
path
in
validator_path_list
:
validator_path
=
os
.
path
.
join
(
path
,
'check'
)
if
os
.
path
.
exists
(
validator_path
):
validator
=
W3Validator
(
validator_path
,
show_warnings
)
break
else
:
print
'No w3c validator found at'
,
validator_path
print
'No w3c validator found at'
,
validator_path
_list
elif
validator_to_use
==
'tidy'
:
error
=
False
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment