Commit 855b324a authored by Nicolas Delaby's avatar Nicolas Delaby

Do not fail if _base_metadata does not exists

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28081 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 38c86217
...@@ -546,7 +546,7 @@ class OOoDocument(PermanentURLMixIn, File, ConversionCacheMixin): ...@@ -546,7 +546,7 @@ class OOoDocument(PermanentURLMixIn, File, ConversionCacheMixin):
Returns the metadata extracted by the conversion Returns the metadata extracted by the conversion
server. server.
""" """
return self._base_metadata return getattr(self, '_base_metadata', {})
security.declareProtected(Permissions.ModifyPortalContent, security.declareProtected(Permissions.ModifyPortalContent,
'updateBaseMetadata') 'updateBaseMetadata')
......
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