Commit 1045512f authored by Aurel's avatar Aurel

remove empty trash bin at the end of installation

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9985 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4fc50982
...@@ -4047,7 +4047,7 @@ Business Template is a set of definitions, such as skins, portal types and categ ...@@ -4047,7 +4047,7 @@ Business Template is a set of definitions, such as skins, portal types and categ
LOG('Business Template', 0, 'Updating Tools') LOG('Business Template', 0, 'Updating Tools')
gen.setup(site, 0, update=1) gen.setup(site, 0, update=1)
# check if we have to updater business template workflow # check if we have to update business template workflow
if self.getTitle() == 'erp5_core' and self.getTemplateUpdateBusinessTemplateWorkflow(): if self.getTitle() == 'erp5_core' and self.getTemplateUpdateBusinessTemplateWorkflow():
LOG('Business Template', 0, 'Updating Business Template Workflows') LOG('Business Template', 0, 'Updating Business Template Workflows')
gen.setupWorkflow(site) gen.setupWorkflow(site)
...@@ -4055,6 +4055,11 @@ Business Template is a set of definitions, such as skins, portal types and categ ...@@ -4055,6 +4055,11 @@ Business Template is a set of definitions, such as skins, portal types and categ
# self._v_txn = WorkflowUpdateTM() # self._v_txn = WorkflowUpdateTM()
# self._v_txn.register(update=1, gen=gen, site=site) # self._v_txn.register(update=1, gen=gen, site=site)
# remove trashbin if empty
if trashbin is not None:
if len(trashbin.objectIds()) == 0:
trash_tool.manage_delObjects([trashbin.getId(),])
if update_catalog: if update_catalog:
site.ERP5Site_reindexAll() site.ERP5Site_reindexAll()
......
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