[Erp5-report] r35229 nicolas - /erp5/trunk/products/ERP5/Document/File.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed May 12 17:00:02 CEST 2010


Author: nicolas
Date: Wed May 12 17:00:01 2010
New Revision: 35229

URL: http://svn.erp5.org?rev=35229&view=rev
Log:
There is no need to override hasBaseData for a File
because it does not implement IBaseConvertable interface

Modified:
    erp5/trunk/products/ERP5/Document/File.py

Modified: erp5/trunk/products/ERP5/Document/File.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/File.py?rev=35229&r1=35228&r2=35229&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/File.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/File.py [utf8] Wed May 12 17:00:01 2010
@@ -130,14 +130,6 @@
   def hasFile(self):
     """
     Checks whether a file was uploaded into the document.
-    """
-    return self.hasData()
-
-  security.declareProtected(Permissions.AccessContentsInformation, 'hasBaseData')
-  def hasBaseData(self):
-    """
-      By default, a File instance does not require conversion
-      to a base format. Therefore, hasBaseData must be overriden.
     """
     return self.hasData()
 




More information about the Erp5-report mailing list