Commit aeb4c4c6 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Use group by

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12180 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f53e1f42
...@@ -126,8 +126,8 @@ if not kw.has_key(\'validation_state\'):\n ...@@ -126,8 +126,8 @@ if not kw.has_key(\'validation_state\'):\n
\'released\', \'published\', \'restricted\']\n \'released\', \'published\', \'restricted\']\n
if not kw.has_key(\'order_by\'):\n if not kw.has_key(\'order_by\'):\n
kw[\'order_by\'] = [(\'int_index\', \'descending\')]\n kw[\'order_by\'] = [(\'int_index\', \'descending\')]\n
#if not kw.has_key(\'group_by\'):\n if not kw.has_key(\'group_by\'):\n
# kw[\'group_by\'] = [(\'reference\',)]\n kw[\'group_by\'] = (\'reference\',)\n
\n \n
# Return the list of matching documents for the given states\n # Return the list of matching documents for the given states\n
return current_section.searchResults(**kw)\n return current_section.searchResults(**kw)\n
......
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