Commit f92c6a74 authored by Sebastien Robin's avatar Sebastien Robin

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
parent ee49fbab
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment