Commit a8042e00 authored by Jean-Paul Smets's avatar Jean-Paul Smets

edit rather than embed

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19208 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9cc1e827
...@@ -481,7 +481,7 @@ class OOoDocument(File, ConversionCacheMixin): ...@@ -481,7 +481,7 @@ class OOoDocument(File, ConversionCacheMixin):
data=zip_file.read(file_name)) data=zip_file.read(file_name))
if web_page.getValidationState() != 'embedded': if web_page.getValidationState() != 'embedded':
# Make sure embedded is set until cleaner solution if found # Make sure embedded is set until cleaner solution if found
web_page.embed() web_page.edit()
web_page.activate().disoverMetadata() # Maybe we should use contribution tool instead web_page.activate().disoverMetadata() # Maybe we should use contribution tool instead
# Should be embedded # Should be embedded
else: else:
...@@ -492,7 +492,7 @@ class OOoDocument(File, ConversionCacheMixin): ...@@ -492,7 +492,7 @@ class OOoDocument(File, ConversionCacheMixin):
data=zip_file.read(file_name)) data=zip_file.read(file_name))
if image_or_file.getValidationState() != 'embedded': if image_or_file.getValidationState() != 'embedded':
# Make sure embedded is set until cleaner solution if found # Make sure embedded is set until cleaner solution if found
image_or_file.embed() image_or_file.edit()
if must_close: if must_close:
zip_file.close() zip_file.close()
archive_file.close() archive_file.close()
......
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