From cd26080d388609d73f4e71a11203f3210bee2ae6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com>
Date: Thu, 15 Nov 2007 10:35:54 +0000
Subject: [PATCH] vault_url can be None and "", do nothing in both cases

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17613 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../erp5_banking_core/Baobab_getCounterStockList.xml            | 2 +-
 bt5/erp5_banking_core/bt/revision                               | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Baobab_getCounterStockList.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Baobab_getCounterStockList.xml
index e325c6b30f..dfe6449838 100644
--- a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Baobab_getCounterStockList.xml
+++ b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Baobab_getCounterStockList.xml
@@ -89,7 +89,7 @@ total_inventory_list = []\n
 for counter_vault in counter_vault_list:\n
   counter_title = counter_vault[0]\n
   counter_vault_url = counter_vault[1]\n
-  if counter_vault_url==\'\':\n
+  if counter_vault_url in (\'\', None):\n
     continue\n
   counter_title = counter_vault[0]\n
   temp_list = context.CounterModule_getVaultTransactionList(vault=counter_vault_url)\n
diff --git a/bt5/erp5_banking_core/bt/revision b/bt5/erp5_banking_core/bt/revision
index 1c34b96390..cadbe928f8 100644
--- a/bt5/erp5_banking_core/bt/revision
+++ b/bt5/erp5_banking_core/bt/revision
@@ -1 +1 @@
-377
\ No newline at end of file
+378
\ No newline at end of file
-- 
2.30.9