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):
File._setFile(self, data, precondition=precondition)
if self.hasBaseData():
# This is a hack - XXX - new accessor needed to delete properties
delattr(self, 'base_data')
try:
delattr(self, 'base_data')
except AttributeError:
pass
security.declareProtected(Permissions.View, 'index_html')
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