Update of /cvsroot/boost/boost/tools/regression/xsl_reports
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv28188
Modified Files:
boost_wide_report.py
Log Message:
Fix 'Page not found' issue for runner IDs with spaces
Index: boost_wide_report.py
===================================================================
RCS file:
/cvsroot/boost/boost/tools/regression/xsl_reports/boost_wide_report.py,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- boost_wide_report.py 20 Feb 2007 10:26:23 -0000 1.20
+++ boost_wide_report.py 7 May 2007 10:17:10 -0000 1.21
@@ -1,5 +1,5 @@
-# Copyright (c) MetaCommunications, Inc. 2003-2005
+# Copyright (c) MetaCommunications, Inc. 2003-2007
#
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
@@ -666,18 +666,19 @@
def fix_file_names( dir ):
"""
The current version of xslproc doesn't correctly handle
- spaces on posix systems. We have to manually go through the
- result set and correct decode encoded spaces (%20).
+ spaces. We have to manually go through the
+ result set and decode encoded spaces (%20).
"""
- if os.name == 'posix':
- for root, dirs, files in os.walk( dir ):
- for file in files:
- if file.find( "%20" ) > -1:
- new_name = file.replace( "%20", " " )
- old_file_path = os.path.join( root, file )
- new_file_path = os.path.join( root, new_name )
- print "renaming %s %s" % ( old_file_path, new_file_path )
- os.rename ( old_file_path, new_file_path )
+ utils.log( 'Fixing encoded file names...' )
+ for root, dirs, files in os.walk( dir ):
+ for file in files:
+ if file.find( "%20" ) > -1:
+ new_name = file.replace( "%20", " " )
+ old_file_path = os.path.join( root, file )
+ new_file_path = os.path.join( root, new_name )
+ utils.log( 'Renaming %s to %s' % ( old_file_path,
new_file_path ) )
+ os.rename ( old_file_path, new_file_path )
+
def build_xsl_reports(
locate_root_dir
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs