From c35f3b9240f125bd2f14bec77c38df83178e8e0c Mon Sep 17 00:00:00 2001
From: Yoshinori Okuji <yo@nexedi.com>
Date: Fri, 30 Sep 2005 17:32:29 +0000
Subject: [PATCH] Make hasContent more efficient.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3927 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/Document/Folder.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5Type/Document/Folder.py b/product/ERP5Type/Document/Folder.py
index 7f085b4314..8dfc5ff126 100755
--- a/product/ERP5Type/Document/Folder.py
+++ b/product/ERP5Type/Document/Folder.py
@@ -129,7 +129,7 @@ class FolderMixIn(ExtensionClass.Base):
 
   security.declareProtected(Permissions.View, 'hasContent')
   def hasContent(self,id):
-    return id in self.objectIds()
+    return self.hasObject(id)
 
   # Get the content
   security.declareProtected(Permissions.View, 'searchFolder')
-- 
2.30.9