[Erp5-report] r9985 - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Sep 15 13:19:11 CEST 2006
Author: aurel
Date: Fri Sep 15 13:19:10 2006
New Revision: 9985
URL: http://svn.erp5.org?rev=9985&view=rev
Log:
remove empty trash bin at the end of installation
Modified:
erp5/trunk/products/ERP5/Document/BusinessTemplate.py
Modified: erp5/trunk/products/ERP5/Document/BusinessTemplate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/BusinessTemplate.py?rev=9985&r1=9984&r2=9985&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py Fri Sep 15 13:19:10 2006
@@ -4047,13 +4047,18 @@
LOG('Business Template', 0, 'Updating Tools')
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():
LOG('Business Template', 0, 'Updating Business Template Workflows')
gen.setupWorkflow(site)
# XXX keep TM in case update of workflow doesn't work
# self._v_txn = WorkflowUpdateTM()
# 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:
site.ERP5Site_reindexAll()
More information about the Erp5-report
mailing list