From dbd3617348f69d88e22160c7ffe5e13e5104f48d Mon Sep 17 00:00:00 2001 From: ced <> Date: Wed, 16 Jan 2008 15:57:02 +0000 Subject: [PATCH] Fix import in xsl report on win32 bzr revid: ced-9d2e2a9a10d795624fbc4fff921ce8e45727bd1a --- bin/report/interface.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/report/interface.py b/bin/report/interface.py index 968346f3f00..a876b27897c 100644 --- a/bin/report/interface.py +++ b/bin/report/interface.py @@ -39,6 +39,7 @@ import pooler import tools import print_xml import render +import urllib # # encode a value to a string in utf8 and converts XML entities @@ -153,8 +154,8 @@ class report_rml(report_int): if child.name == 'import': if child.hasProp('href'): file = child.prop('href') - child.setProp('href', str( - os.path.normpath(os.path.join(xsl_path, file)))) + child.setProp('href', urllib.quote(str( + os.path.normpath(os.path.join(xsl_path, file))))) #TODO: get all the translation in one query. That means we have to: # * build a list of items to translate,