From bb6472a6ceeb00aceb9b703e53d73d8712e15c06 Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Tue, 23 Oct 2007 09:00:22 +0000
Subject: [PATCH] make Folder_reindexAll working when HBtreeFolder is not there

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17108 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_skins/erp5_core/Folder_reindexAll.xml               | 3 ++-
 product/ERP5/bootstrap/erp5_core/bt/revision                   | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Folder_reindexAll.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Folder_reindexAll.xml
index 4453cb3284..b32596646d 100644
--- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Folder_reindexAll.xml
+++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Folder_reindexAll.xml
@@ -110,7 +110,7 @@ def Folder_reindexObjectList(id_list_list):\n
 \n
 try:\n
   tree_id_list = folder.getTreeIdList()\n
-except NotImplementedError:\n
+except NotImplementedError, AttributeError:\n
   # Build a list of list, like this we parse ids only one time,\n
   # and then Folder_reinexObjectList will work with one list at\n
   # a time and remove it from the list of list\n
@@ -233,6 +233,7 @@ else:\n
                             <string>Folder_reindexObjectList</string>
                             <string>tree_id_list</string>
                             <string>NotImplementedError</string>
+                            <string>AttributeError</string>
                             <string>append</string>
                             <string>$append0</string>
                             <string>x</string>
diff --git a/product/ERP5/bootstrap/erp5_core/bt/revision b/product/ERP5/bootstrap/erp5_core/bt/revision
index 4540549358..3e990b743e 100644
--- a/product/ERP5/bootstrap/erp5_core/bt/revision
+++ b/product/ERP5/bootstrap/erp5_core/bt/revision
@@ -1 +1 @@
-539
\ No newline at end of file
+541
\ No newline at end of file
-- 
2.30.9