From c09f952f41971f93f1f2661754c01c316ea69335 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Wed, 28 Jan 2009 12:52:23 +0000
Subject: [PATCH] remove this strange select_expression that was never used

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25329 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../AccountModule_getAccountList.xml          | 26 +++----------------
 bt5/erp5_accounting/bt/revision               |  2 +-
 2 files changed, 4 insertions(+), 24 deletions(-)

diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountList.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountList.xml
index 58c4a050ca..a82b7b2843 100644
--- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountList.xml
+++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountList.xml
@@ -53,21 +53,7 @@
         </item>
         <item>
             <key> <string>_body</string> </key>
-            <value> <string encoding="cdata"><![CDATA[
-
-try:\n
-  # XXX not used !\n
-  currency = kwd[\'accounting_transaction_line_currency\']\n
-  id = currency.split(\'/\')[-1]\n
-except KeyError:\n
-  id = \'\'\n
-\n
-if not id:\n
-  id = \'&nbsp;\'\n
-\n
-kwd[\'select_expression\'] = "\'%s\' AS accounting_transaction_line_currency" % id\n
-\n
-# precision for editable fields\n
+            <value> <string># precision for editable fields\n
 params = context.ERP5Accounting_getParams(selection_name)\n
 if params.get(\'precision\', None) is not None:\n
   context.REQUEST.set(\'precision\', params[\'precision\'])\n
@@ -84,9 +70,7 @@ if sort_on is not None:\n
       new_sort_on.append(sort_on_item)\n
 \n
 return context.portal_catalog(sort_on=new_sort_on, **kwd)\n
-
-
-]]></string> </value>
+</string> </value>
         </item>
         <item>
             <key> <string>_code</string> </key>
@@ -126,15 +110,11 @@ return context.portal_catalog(sort_on=new_sort_on, **kwd)\n
                             <string>selection</string>
                             <string>selection_name</string>
                             <string>kwd</string>
-                            <string>_getitem_</string>
-                            <string>currency</string>
                             <string>_getattr_</string>
-                            <string>id</string>
-                            <string>KeyError</string>
-                            <string>_write_</string>
                             <string>context</string>
                             <string>params</string>
                             <string>None</string>
+                            <string>_getitem_</string>
                             <string>new_sort_on</string>
                             <string>_getiter_</string>
                             <string>sort_on_item</string>
diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision
index 203bd07e6d..6ae4142a6e 100644
--- a/bt5/erp5_accounting/bt/revision
+++ b/bt5/erp5_accounting/bt/revision
@@ -1 +1 @@
-846
\ No newline at end of file
+847
\ No newline at end of file
-- 
2.30.9