[Erp5-report] r12922 - /erp5/trunk/products/ERP5/Document/File.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Feb 20 18:53:28 CET 2007
Author: bartek
Date: Tue Feb 20 18:53:24 2007
New Revision: 12922
URL: http://svn.erp5.org?rev=12922&view=rev
Log:
hasFile is handled by parent class Document
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=12922&r1=12921&r2=12922&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/File.py (original)
+++ erp5/trunk/products/ERP5/Document/File.py Tue Feb 20 18:53:24 2007
@@ -148,17 +148,6 @@
getcontentlength = get_size
- # File management virtual accessor
- security.declareProtected(Permissions.View, 'hasFile')
- def hasFile(self):
- """
- Checks whether we have an initial file
- """
- _marker = []
- if getattr(self,'data', _marker) is not _marker: # XXX-JPS - use propertysheet accessors
- return getattr(self,'data') is not None
- return False
-
def _setFile(self, data, precondition=None):
self.clearConversionCache()
CMFFile._edit(self, precondition=precondition, file=data)
More information about the Erp5-report
mailing list