[Erp5-report] r34906 nicolas - /erp5/trunk/products/ERP5/Document/TextDocument.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Apr 30 17:57:31 CEST 2010
Author: nicolas
Date: Fri Apr 30 17:57:30 2010
New Revision: 34906
URL: http://svn.erp5.org?rev=34906&view=rev
Log:
A TextDocument store its data in the "text_content" property. Since
there is no such thing as data in TextDocument, getting data
is equivalent to getting some text_content.
Modified:
erp5/trunk/products/ERP5/Document/TextDocument.py
Modified: erp5/trunk/products/ERP5/Document/TextDocument.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/TextDocument.py?rev=34906&r1=34905&r2=34906&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/TextDocument.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/TextDocument.py [utf8] Fri Apr 30 17:57:30 2010
@@ -291,6 +291,15 @@
"""
return self.hasTextContent()
+ security.declareProtected(Permissions.AccessContentsInformation, 'getData')
+ def getData(self):
+ """
+ A TextDocument store its data in the "text_content" property. Since
+ there is no such thing as data in TextDocument, getting data
+ is equivalent to getting some text_content.
+ """
+ return self.getTextContent()
+
security.declareProtected(Permissions.AccessContentsInformation, 'getMimeTypeAndContent')
def getMimeTypeAndContent(self):
"""This method returns a tuple which contains mimetype and content."""
More information about the Erp5-report
mailing list