Commit 3a89e0d9 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Release locks after installing a business template.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4002 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 68a14899
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment