Commit 6603f616 authored by Łukasz Nowak's avatar Łukasz Nowak

Support limit and offset.

parent cd1de249
...@@ -56,9 +56,11 @@ kw = {}\n ...@@ -56,9 +56,11 @@ kw = {}\n
kw.update(\n kw.update(\n
portal_type=\'Software Product\',\n portal_type=\'Software Product\',\n
validation_state=\'published\',\n validation_state=\'published\',\n
limit=10,\n limit=(offset, limit),\n
title=title,\n offset=offset,\n
title=title\n
)\n )\n
script.log(context.getPortalObject().portal_catalog(src__=1, **kw))\n
if title:\n if title:\n
for software_product in context.getPortalObject().portal_catalog(**kw\n for software_product in context.getPortalObject().portal_catalog(**kw\n
):\n ):\n
...@@ -68,7 +70,7 @@ return context.asJSON(response)\n ...@@ -68,7 +70,7 @@ return context.asJSON(response)\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>title</string> </value> <value> <string>title, offset=0, limit=10</string> </value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
......
316 317
\ No newline at end of file \ No newline at end of file
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