Commit 53aebe66 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

Fix script again after changes in r28412 to keep current behaviour (list style...

Fix script again after changes in r28412 to keep current behaviour (list style for search results in non-web mode).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28538 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 756c4ddb
...@@ -66,14 +66,13 @@ if field_your_search_portal_type:\n ...@@ -66,14 +66,13 @@ if field_your_search_portal_type:\n
else:\n else:\n
kw.update({\'portal_type\':context.Base_translateString(field_your_search_portal_type)})\n kw.update({\'portal_type\':context.Base_translateString(field_your_search_portal_type)})\n
\n \n
getWebSectionValue = getattr(context, \'getWebSectionValue\', None)\n web_section = context.getWebSectionValue()\n
if getWebSectionValue is not None and \\\n if web_section is not None and \\\n
not bool(context.REQUEST.get(\'ignore_layout\', False)):\n not bool(context.REQUEST.get(\'ignore_layout\', False)):\n
search_context = getWebSectionValue()\n search_context = web_section\n
if list_style is None:\n if list_style is None:\n
kw.update({\'list_style\':\'search\'})\n kw.update({\'list_style\':\'search\'})\n
\n else:\n
if search_context is None:\n
search_context = context.getPortalObject()\n search_context = context.getPortalObject()\n
\n \n
return search_context.Base_redirect(\'ERP5Site_viewSearchResult\', keep_items=kw)\n return search_context.Base_redirect(\'ERP5Site_viewSearchResult\', keep_items=kw)\n
...@@ -121,9 +120,8 @@ return search_context.Base_redirect(\'ERP5Site_viewSearchResult\', keep_items=kw ...@@ -121,9 +120,8 @@ return search_context.Base_redirect(\'ERP5Site_viewSearchResult\', keep_items=kw
<string>_getattr_</string> <string>_getattr_</string>
<string>list</string> <string>list</string>
<string>context</string> <string>context</string>
<string>getattr</string> <string>web_section</string>
<string>None</string> <string>None</string>
<string>getWebSectionValue</string>
<string>bool</string> <string>bool</string>
<string>False</string> <string>False</string>
<string>search_context</string> <string>search_context</string>
......
1281 1282
\ 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