From 1e1ca2e9b610b2619d6e5e8078e8b6feb6165170 Mon Sep 17 00:00:00 2001
From: Kevin Deldycke <kevin@nexedi.com>
Date: Fri, 14 Apr 2006 20:57:42 +0000
Subject: [PATCH] Don't return the last item

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6694 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../erp5_accounting/Account_getGapItemList.xml             | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_getGapItemList.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_getGapItemList.xml
index 053df918f0..45b76827f6 100644
--- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_getGapItemList.xml
+++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_getGapItemList.xml
@@ -84,7 +84,10 @@ def getGapItemList(gap_root, portal_path): \n
 \n
 from Products.ERP5Type.Cache import CachingMethod\n
 getGapItemList = CachingMethod(getGapItemList, id=\'Account.getGapItemList\')\n
-return getGapItemList(gap_root=gap_root, portal_path=context.portal_url())\n
+gap_item_list  = getGapItemList(gap_root=gap_root, portal_path=context.portal_url())\n
+\n
+# Don\'t return the last item, which is the gap_root (like "fr/pcg")\n
+return gap_item_list[:-1]\n
 </string> </value>
         </item>
         <item>
@@ -134,6 +137,8 @@ return getGapItemList(gap_root=gap_root, portal_path=context.portal_url())\n
                             <string>getGapItemList</string>
                             <string>Products.ERP5Type.Cache</string>
                             <string>CachingMethod</string>
+                            <string>gap_item_list</string>
+                            <string>_getitem_</string>
                           </tuple>
                         </value>
                     </item>
-- 
2.30.9