[Erp5-report] r15834 - /erp5/trunk/products/ERP5/Document/Document.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Aug 27 15:02:28 CEST 2007
Author: jp
Date: Mon Aug 27 15:02:28 2007
New Revision: 15834
URL: http://svn.erp5.org?rev=15834&view=rev
Log:
Renames asHTML to asEntireHTML in order to prevent conflict with ZPublisher
Modified:
erp5/trunk/products/ERP5/Document/Document.py
Modified: erp5/trunk/products/ERP5/Document/Document.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Document.py?rev=15834&r1=15833&r2=15834&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Document.py (original)
+++ erp5/trunk/products/ERP5/Document/Document.py Mon Aug 27 15:02:28 2007
@@ -447,7 +447,7 @@
- implement guards API so that conversion to certain
formats require certain permission
"""
- pass
+ raise NotImplementedError
security.declareProtected(Permissions.View, 'getSearchableText')
def getSearchableText(self, md=None):
@@ -1039,8 +1039,8 @@
mime, data = self.convert(format='txt')
return data
- security.declareProtected(Permissions.View, 'asHTML')
- def asHTML(self):
+ security.declareProtected(Permissions.View, 'asEntireHTML')
+ def asEntireHTML(self):
"""
Returns a complete HTML representation of the document
(with body tags, etc.). Adds if necessary a base
More information about the Erp5-report
mailing list