[Erp5-report] r34913 nicolas - /erp5/trunk/products/ERP5/Document/TextDocument.py

nobody at svn.erp5.org nobody at svn.erp5.org
Sat May 1 09:35:27 CEST 2010


Author: nicolas
Date: Sat May  1 09:35:26 2010
New Revision: 34913

URL: http://svn.erp5.org?rev=34913&view=rev
Log:
Revert http://svn.erp5.org?rev=34906&view=rev
This can not work for documents who carry 
the both properties(data & text_content) like Events.
A better fix will applied after peer approval.

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=34913&r1=34912&r2=34913&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/TextDocument.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/TextDocument.py [utf8] Sat May  1 09:35:26 2010
@@ -291,15 +291,6 @@
       """
       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