Commit d2bfa36b authored by Vincent Pelletier's avatar Vincent Pelletier

Make filename property optional to make possible to unit test OOo document...

Make filename property optional to make possible to unit test OOo document import using StringIO object.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14203 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d021c7b5
...@@ -248,7 +248,7 @@ class OOoParser: ...@@ -248,7 +248,7 @@ class OOoParser:
raise CorruptedOOoFile() raise CorruptedOOoFile()
# Get the filename # Get the filename
self.filename = file_descriptor.filename self.filename = getattr(file_descriptor, 'filename', 'default_filename')
# List and load the content of the zip file # List and load the content of the zip file
for name in oo_unzipped.namelist(): for name in oo_unzipped.namelist():
......
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