From 3a89e0d91b6ef195c671ba1318f8fd169f2e7f2a Mon Sep 17 00:00:00 2001 From: Yoshinori Okuji <yo@nexedi.com> Date: Wed, 12 Oct 2005 09:25:58 +0000 Subject: [PATCH] Release locks after installing a business template. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4002 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/tests/ERP5TypeTestCase.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/product/ERP5Type/tests/ERP5TypeTestCase.py b/product/ERP5Type/tests/ERP5TypeTestCase.py index 6c3d964987..81b1e92b0b 100755 --- a/product/ERP5Type/tests/ERP5TypeTestCase.py +++ b/product/ERP5Type/tests/ERP5TypeTestCase.py @@ -294,6 +294,8 @@ def setupERP5Site(business_template_list=(), app=None, portal_name=portal_name, factory = app.manage_addProduct['ERP5'] # Not needed by ERP5Type factory.manage_addERP5Site(portal_name,light_install=light_install, reindex=reindex,create_activities=create_activities) + # Release locks + get_transaction().commit() portal=app[portal_name] # Remove all local PropertySheets, Documents for id in getLocalPropertySheetList(): @@ -309,6 +311,8 @@ def setupERP5Site(business_template_list=(), app=None, portal_name=portal_name, #portal.portal_templates.download('%s.zexp' % id, id=id) portal.portal_templates.download(url, id=id) portal.portal_templates[id].install(light_install=light_install) + # Release locks + get_transaction().commit() # Enbable reindexing # Do hot reindexing # Does not work if hot_reindexing: -- 2.30.9