Commit cb5446c4 authored by Yusei Tahara's avatar Yusei Tahara

Prevent AttributeError.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17538 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 528c2b1e
...@@ -143,7 +143,10 @@ class OOoDocument(File, ConversionCacheMixin): ...@@ -143,7 +143,10 @@ class OOoDocument(File, ConversionCacheMixin):
File._setFile(self, data, precondition=precondition) File._setFile(self, data, precondition=precondition)
if self.hasBaseData(): if self.hasBaseData():
# This is a hack - XXX - new accessor needed to delete properties # This is a hack - XXX - new accessor needed to delete properties
try:
delattr(self, 'base_data') delattr(self, 'base_data')
except AttributeError:
pass
security.declareProtected(Permissions.View, 'index_html') security.declareProtected(Permissions.View, 'index_html')
def index_html(self, REQUEST, RESPONSE, format=None, display=None, **kw): def index_html(self, REQUEST, RESPONSE, format=None, display=None, **kw):
......
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