Fix report with xsl to work in a zip module

bzr revid: ced-0b6fd7969ba144d7c72c7d93f8cede88a043a84a
This commit is contained in:
ced 2007-10-24 13:29:30 +00:00
parent 83026c374b
commit cee86ce08d
1 changed files with 5 additions and 4 deletions

View File

@ -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