Commit 0be0000c authored by Jean-Paul Smets's avatar Jean-Paul Smets

Make sure base data exists before starting conversion.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13776 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8c0c8fe3
...@@ -224,6 +224,8 @@ class OOoDocument(File, ConversionCacheMixin): ...@@ -224,6 +224,8 @@ class OOoDocument(File, ConversionCacheMixin):
""" """
Communicates with server to convert a file Communicates with server to convert a file
""" """
if not self.hasBaseData():
self.convertToBaseFormat()
if format == 'text-content': if format == 'text-content':
# Extract text from the ODF file # Extract text from the ODF file
cs = cStringIO.StringIO() cs = cStringIO.StringIO()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment