From 6eac4c3948fac4e14d116cad9fbe688a215932d9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bartek=20G=C3=B3rny?= <bartek@gorny.edu.pl>
Date: Tue, 20 Feb 2007 17:53:24 +0000
Subject: [PATCH] hasFile is handled by parent class Document

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12922 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/File.py | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/product/ERP5/Document/File.py b/product/ERP5/Document/File.py
index 347b6bfb48..761fdc28d2 100644
--- a/product/ERP5/Document/File.py
+++ b/product/ERP5/Document/File.py
@@ -148,17 +148,6 @@ class File(Document, CMFFile, ConversionCacheMixin):
 
   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)
-- 
2.30.9