[Erp5-report] r18481 - /erp5/trunk/products/ERP5/Document/Document.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Dec 24 09:59:25 CET 2007
Author: yusei
Date: Mon Dec 24 09:59:25 2007
New Revision: 18481
URL: http://svn.erp5.org?rev=18481&view=rev
Log:
guarantee the return value is string.
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=18481&r1=18480&r2=18481&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Document.py (original)
+++ erp5/trunk/products/ERP5/Document/Document.py Mon Dec 24 09:59:25 2007
@@ -1066,7 +1066,7 @@
Converts the content of the document to a textual representation.
"""
mime, data = self.convert(format='txt')
- return data
+ return str(data)
security.declareProtected(Permissions.View, 'asEntireHTML')
def asEntireHTML(self):
More information about the Erp5-report
mailing list