[Erp5-report] r37499 gabriel - /erp5/trunk/utils/cloudooo/cloudooo/bin/unoconverter.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Aug 5 04:04:53 CEST 2010
Author: gabriel
Date: Thu Aug 5 04:04:51 2010
New Revision: 37499
URL: http://svn.erp5.org?rev=37499&view=rev
Log:
the format impr.html is used to htm and xhtml too. this format is used to export correctly the documents in erp5_dms.
Modified:
erp5/trunk/utils/cloudooo/cloudooo/bin/unoconverter.py
Modified: erp5/trunk/utils/cloudooo/cloudooo/bin/unoconverter.py
URL: http://svn.erp5.org/erp5/trunk/utils/cloudooo/cloudooo/bin/unoconverter.py?rev=37499&r1=37498&r2=37499&view=diff
==============================================================================
--- erp5/trunk/utils/cloudooo/cloudooo/bin/unoconverter.py [utf8] (original)
+++ erp5/trunk/utils/cloudooo/cloudooo/bin/unoconverter.py [utf8] Thu Aug 5 04:04:51 2010
@@ -115,7 +115,10 @@ class UnoConverter(object):
def convert(self, output_format=None):
"""it converts a document to specific format"""
- destination_format = "impr.html" if output_format == "html" else output_format
+ if output_format in ("html", "htm", "xhtml"):
+ destination_format = "impr.html"
+ else:
+ destination_format = output_format
output_url = mktemp(suffix='.%s' % destination_format,
dir=self.document_dir_path)
More information about the Erp5-report
mailing list