From 69af111a2bc37ec3bffd9b1e6a6329d3070eb345 Mon Sep 17 00:00:00 2001
From: Mame Coumba Sall <mame@nexedi.com>
Date: Tue, 19 Oct 2010 16:25:49 +0000
Subject: [PATCH] add "from transaction import get as get_transaction". During
 upgrade get_transaction was not defined

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39362 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Banking/tests/TestERP5BankingMixin.py                | 1 +
 product/ERP5Banking/tests/testERP5BankingCheckbookDelivery.py    | 1 +
 .../tests/testERP5BankingCheckbookUsualCashTransfer.py           | 1 +
 .../ERP5Banking/tests/testERP5BankingCheckbookVaultTransfer.py   | 1 +
 4 files changed, 4 insertions(+)

diff --git a/product/ERP5Banking/tests/TestERP5BankingMixin.py b/product/ERP5Banking/tests/TestERP5BankingMixin.py
index bf0663d686..bfa949c5e2 100644
--- a/product/ERP5Banking/tests/TestERP5BankingMixin.py
+++ b/product/ERP5Banking/tests/TestERP5BankingMixin.py
@@ -28,6 +28,7 @@
 
 from DateTime import DateTime
 from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
+from transaction import get as get_transaction
 
 def isSameSet(a, b):
   for i in a:
diff --git a/product/ERP5Banking/tests/testERP5BankingCheckbookDelivery.py b/product/ERP5Banking/tests/testERP5BankingCheckbookDelivery.py
index 27904d43a4..2cf91c3fa9 100644
--- a/product/ERP5Banking/tests/testERP5BankingCheckbookDelivery.py
+++ b/product/ERP5Banking/tests/testERP5BankingCheckbookDelivery.py
@@ -33,6 +33,7 @@ from Products.ERP5Type.tests.Sequence import SequenceList
 from Products.ERP5Banking.tests.testERP5BankingCheckbookUsualCashTransfer \
      import TestERP5BankingCheckbookUsualCashTransferMixin
 from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
+from transaction import get as get_transaction
 
 # Needed in order to have a log file inside the current folder
 os.environ['EVENT_LOG_FILE']     = os.path.join(os.getcwd(), 'zLOG.log')
diff --git a/product/ERP5Banking/tests/testERP5BankingCheckbookUsualCashTransfer.py b/product/ERP5Banking/tests/testERP5BankingCheckbookUsualCashTransfer.py
index f3e90d760a..e6afaa804c 100644
--- a/product/ERP5Banking/tests/testERP5BankingCheckbookUsualCashTransfer.py
+++ b/product/ERP5Banking/tests/testERP5BankingCheckbookUsualCashTransfer.py
@@ -34,6 +34,7 @@ from Products.DCWorkflow.DCWorkflow import ValidationFailed
 from Products.ERP5Banking.tests.testERP5BankingCheckbookVaultTransfer \
      import TestERP5BankingCheckbookVaultTransferMixin
 from zLOG import LOG
+from transaction import get as get_transaction
 
 # Needed in order to have a log file inside the current folder
 os.environ['EVENT_LOG_FILE']     = os.path.join(os.getcwd(), 'zLOG.log')
diff --git a/product/ERP5Banking/tests/testERP5BankingCheckbookVaultTransfer.py b/product/ERP5Banking/tests/testERP5BankingCheckbookVaultTransfer.py
index e4547f260b..dd06ed7c94 100644
--- a/product/ERP5Banking/tests/testERP5BankingCheckbookVaultTransfer.py
+++ b/product/ERP5Banking/tests/testERP5BankingCheckbookVaultTransfer.py
@@ -31,6 +31,7 @@
 import os
 from Products.ERP5Type.tests.Sequence import SequenceList
 from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
+from transaction import get as get_transaction
 
 # Needed in order to have a log file inside the current folder
 os.environ['EVENT_LOG_FILE']     = os.path.join(os.getcwd(), 'zLOG.log')
-- 
2.30.9