Commit 56e72c73 authored by Vincent Pelletier's avatar Vincent Pelletier

Accept and transmit a "limit" parameter to sql query.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22664 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent af4b4201
......@@ -1375,10 +1375,15 @@ class CategoryTool( UniqueObject, Folder, Base ):
for base_category in base_category_list:
category_list.append("%s/%s" % (base_category, context.getRelativeUrl()))
sql_kw = {}
if 'limit' in kw:
sql_kw['limit'] = kw['limit']
brain_result = self.Base_zSearchRelatedObjectsByCategoryList(
category_list=category_list,
portal_type=portal_type,
strict_membership=strict_membership)
strict_membership=strict_membership,
**sql_kw)
result = []
if checked_permission is None:
......
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