Commit 2b353da5 authored by Bartek Górny's avatar Bartek Górny

Adjusted to listbox api changes

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14779 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3fc10f89
...@@ -96,7 +96,8 @@ argument_names = (\'advanced_search_text\', \'title\', \'reference\', \\\n ...@@ -96,7 +96,8 @@ argument_names = (\'advanced_search_text\', \'title\', \'reference\', \\\n
\'SearchableText_all\', \'SearchableText_phrase\')\n \'SearchableText_all\', \'SearchableText_phrase\')\n
\n \n
# a quick hack because sometimes we get a list\n # a quick hack because sometimes we get a list\n
params = [selection.params.get(name, \'\') for name in argument_names]\n params = context.portal_selections.getSelectionParamsFor(\'search_advanced_dialog_selection\')\n
params = [params.get(name, \'\') for name in argument_names]\n
params = [(hasattr(par, \'sort\') and \'\'.join(par) or par) for par in params]\n params = [(hasattr(par, \'sort\') and \'\'.join(par) or par) for par in params]\n
search_string = \' \'.join(params)\n search_string = \' \'.join(params)\n
\n \n
...@@ -140,7 +141,7 @@ return \' \'.join(map(str, res))\n ...@@ -140,7 +141,7 @@ return \' \'.join(map(str, res))\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>brain,selection</string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -160,14 +161,12 @@ return \' \'.join(map(str, res))\n ...@@ -160,14 +161,12 @@ return \' \'.join(map(str, res))\n
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>2</int> </value> <value> <int>0</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>brain</string>
<string>selection</string>
<string>tags</string> <string>tags</string>
<string>trail</string> <string>trail</string>
<string>maxlines</string> <string>maxlines</string>
...@@ -175,11 +174,11 @@ return \' \'.join(map(str, res))\n ...@@ -175,11 +174,11 @@ return \' \'.join(map(str, res))\n
<string>context</string> <string>context</string>
<string>txt</string> <string>txt</string>
<string>argument_names</string> <string>argument_names</string>
<string>params</string>
<string>append</string> <string>append</string>
<string>$append0</string> <string>$append0</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>name</string> <string>name</string>
<string>params</string>
<string>par</string> <string>par</string>
<string>hasattr</string> <string>hasattr</string>
<string>search_string</string> <string>search_string</string>
......
644 646
\ 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