Commit a453bdbe authored by Yusei Tahara's avatar Yusei Tahara

Fixed preview bug.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17497 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9426a3eb
......@@ -153,6 +153,15 @@ class PDFDocument(Image, ConversionCacheMixin):
h = h.replace('<BODY bgcolor="#A0A0A0"', '<BODY ') # Quick hack to remove bg color - XXX
return h
security.declareProtected(Permissions.AccessContentsInformation, 'hasBaseData')
def hasBaseData(self):
"""
This method is an override of dynamically generated method for Document
class.Because PDFDocument does not use baae_data to store raw data.
"""
return self.get_size()>0
security.declareProtected(Permissions.AccessContentsInformation, 'getContentInformation')
def getContentInformation(self):
"""
......
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