Commit f62de40f authored by Łukasz Nowak's avatar Łukasz Nowak

Support not set query string.

parent 1d43131e
...@@ -56,9 +56,10 @@ query_string = context.getProperty(\'catalog_query_string\', \'\')\n ...@@ -56,9 +56,10 @@ query_string = context.getProperty(\'catalog_query_string\', \'\')\n
module_list = context.getProperty(\'module_list\') or []\n module_list = context.getProperty(\'module_list\') or []\n
portal = context.getPortalObject()\n portal = context.getPortalObject()\n
\n \n
kw = {\n kw = {}\n
\'SearchableText\': query_string\n \n
}\n if query_string is not None:\n
kw.update(SearchableText=query_string)\n
\n \n
if len(module_list):\n if len(module_list):\n
kw.update(parent_uid=[portal.restrictedTraverse(module).getUid() for module in module_list])\n kw.update(parent_uid=[portal.restrictedTraverse(module).getUid() for module in module_list])\n
......
137 138
\ 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