From f92c6a7408f9047070806700e47c7592b7904bc5 Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Wed, 27 Jun 2007 12:40:49 +0000
Subject: [PATCH] do not remove None parameters, the catalog is already able to
 handle this

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15009 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/Core/Folder.py | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/product/ERP5Type/Core/Folder.py b/product/ERP5Type/Core/Folder.py
index a4a4db000b..64047ff922 100644
--- a/product/ERP5Type/Core/Folder.py
+++ b/product/ERP5Type/Core/Folder.py
@@ -240,12 +240,16 @@ class FolderMixIn(ExtensionClass.Base):
       del kw['parent_uid']
 
     kw2 = {}
+
+    # I (seb) remove this because sometimes it
+    # is important to give a None parameter, like limit=None
     # Remove useless matter before calling the
     # catalog. In particular, consider empty
     # strings as None values
-    for cname in kw.keys():
-      if kw[cname] != '' and kw[cname] != None:
-        kw2[cname] = kw[cname]
+    #for cname in kw.keys():
+    #  if kw[cname] != '' and kw[cname] != None:
+    #    kw2[cname] = kw[cname]
+
     # The method to call to search the folder
     # content has to be called z_search_folder
     method = self.portal_catalog.portal_catalog
-- 
2.30.9