From 2b353da563292cfa1dc8476f907323a3820412ae Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bartek=20G=C3=B3rny?= <bartek@gorny.edu.pl>
Date: Mon, 11 Jun 2007 16:50:56 +0000
Subject: [PATCH] Adjusted to listbox api changes

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14779 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_skins/erp5_dms/Base_showFoundText.xml      | 11 +++++------
 bt5/erp5_dms/bt/revision                              |  2 +-
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Base_showFoundText.xml b/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Base_showFoundText.xml
index 85e2878bb9..0aa95dd413 100644
--- a/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Base_showFoundText.xml
+++ b/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Base_showFoundText.xml
@@ -96,7 +96,8 @@ argument_names = (\'advanced_search_text\', \'title\', \'reference\', \\\n
                   \'SearchableText_all\', \'SearchableText_phrase\')\n
 \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
 search_string = \' \'.join(params)\n
 \n
@@ -140,7 +141,7 @@ return \' \'.join(map(str, res))\n
         </item>
         <item>
             <key> <string>_params</string> </key>
-            <value> <string>brain,selection</string> </value>
+            <value> <string></string> </value>
         </item>
         <item>
             <key> <string>errors</string> </key>
@@ -160,14 +161,12 @@ return \' \'.join(map(str, res))\n
                   <dictionary>
                     <item>
                         <key> <string>co_argcount</string> </key>
-                        <value> <int>2</int> </value>
+                        <value> <int>0</int> </value>
                     </item>
                     <item>
                         <key> <string>co_varnames</string> </key>
                         <value>
                           <tuple>
-                            <string>brain</string>
-                            <string>selection</string>
                             <string>tags</string>
                             <string>trail</string>
                             <string>maxlines</string>
@@ -175,11 +174,11 @@ return \' \'.join(map(str, res))\n
                             <string>context</string>
                             <string>txt</string>
                             <string>argument_names</string>
+                            <string>params</string>
                             <string>append</string>
                             <string>$append0</string>
                             <string>_getiter_</string>
                             <string>name</string>
-                            <string>params</string>
                             <string>par</string>
                             <string>hasattr</string>
                             <string>search_string</string>
diff --git a/bt5/erp5_dms/bt/revision b/bt5/erp5_dms/bt/revision
index e2756006da..dbda17fdf0 100644
--- a/bt5/erp5_dms/bt/revision
+++ b/bt5/erp5_dms/bt/revision
@@ -1 +1 @@
-644
\ No newline at end of file
+646
\ No newline at end of file
-- 
2.30.9