From 986acb4217e4350fee1a266273c7037c0f0f6a0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Tue, 13 Apr 2010 07:05:24 +0000 Subject: [PATCH] inconditionnaly pass parent_uid in searchFolder / countFolder git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34483 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/Core/Folder.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/product/ERP5Type/Core/Folder.py b/product/ERP5Type/Core/Folder.py index 27a023ceb7..0ac57983f9 100644 --- a/product/ERP5Type/Core/Folder.py +++ b/product/ERP5Type/Core/Folder.py @@ -270,8 +270,7 @@ class FolderMixIn(ExtensionClass.Base): Search the content of a folder by calling the portal_catalog. """ - if not kw.has_key('parent_uid'): #WHY ???? - kw['parent_uid'] = self.getUid() + kw['parent_uid'] = self.getUid() # Make sure that if we use parent base category # We do not have conflicting parent uid values @@ -303,8 +302,7 @@ class FolderMixIn(ExtensionClass.Base): Search the content of a folder by calling the portal_catalog. """ - if not kw.has_key('parent_uid'): #WHY ???? - kw['parent_uid'] = self.getUid() + kw['parent_uid'] = self.getUid() # Make sure that if we use parent base category # We do not have conflicting parent uid values -- 2.30.9