diff options
| author | ced <> | 2008-01-16 15:57:02 +0000 |
|---|---|---|
| committer | ced <> | 2008-01-16 15:57:02 +0000 |
| commit | dbd3617348f69d88e22160c7ffe5e13e5104f48d (patch) | |
| tree | 21c1471b631b5e27be3df74a88786856a15b0f90 /bin/report/interface.py | |
| parent | 77c0cf596a17e838a05d5ea1a6e2eb7aa3508e0c (diff) | |
Fix import in xsl report on win32
bzr revid: ced-9d2e2a9a10d795624fbc4fff921ce8e45727bd1a
Diffstat (limited to 'bin/report/interface.py')
| -rw-r--r-- | bin/report/interface.py | 5 |
1 files 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, |
