From cee86ce08d659bfb5a4be6c9d47904d734324b2e Mon Sep 17 00:00:00 2001 From: ced <> Date: Wed, 24 Oct 2007 13:29:30 +0000 Subject: [PATCH] Fix report with xsl to work in a zip module bzr revid: ced-0b6fd7969ba144d7c72c7d93f8cede88a043a84a --- bin/report/interface.py | 9 +++++---- 1 file 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