diff options
| author | ced <> | 2007-10-24 13:29:30 +0000 |
|---|---|---|
| committer | ced <> | 2007-10-24 13:29:30 +0000 |
| commit | cee86ce08d659bfb5a4be6c9d47904d734324b2e (patch) | |
| tree | f2ae6dacb7f7faa8ad53a230d310f965c4dde833 /bin/report/interface.py | |
| parent | 83026c374bc25774dff953368937b59d5c74d533 (diff) | |
Fix report with xsl to work in a zip module
bzr revid: ced-0b6fd7969ba144d7c72c7d93f8cede88a043a84a
Diffstat (limited to 'bin/report/interface.py')
| -rw-r--r-- | bin/report/interface.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/bin/report/interface.py b/bin/report/interface.py index 3e4cfc8a9b1..d400ca3b021 100644 --- a/bin/report/interface.py +++ b/bin/report/interface.py @@ -140,10 +140,11 @@ class report_rml(report_int): return xml # load XSL (parse it to the XML level) - styledoc = libxml2.parseFile(os.path.join(tools.config['root_path'],self.xsl)) - - #TODO: get all the translation in one query. That means we have to: - # * build a list of items to translate, + styledoc = libxml2.parseDoc(tools.file_open( + os.path.join(tools.config['root_path'], self.xsl)).read()) + + #TODO: get all the translation in one query. That means we have to: + # * build a list of items to translate, # * issue the query to translate them, # * (re)build/update the stylesheet with the translated items |
