[Erp5-report] r17497 - /erp5/trunk/products/ERP5/Document/PDFDocument.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Nov 9 17:20:40 CET 2007
Author: yusei
Date: Fri Nov 9 17:20:39 2007
New Revision: 17497
URL: http://svn.erp5.org?rev=17497&view=rev
Log:
Fixed preview bug.
Modified:
erp5/trunk/products/ERP5/Document/PDFDocument.py
Modified: erp5/trunk/products/ERP5/Document/PDFDocument.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/PDFDocument.py?rev=17497&r1=17496&r2=17497&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/PDFDocument.py (original)
+++ erp5/trunk/products/ERP5/Document/PDFDocument.py Fri Nov 9 17:20:39 2007
@@ -153,6 +153,15 @@
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):
"""
More information about the Erp5-report
mailing list