[Erp5-report] r10944 - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Oct 25 18:32:51 CEST 2006
Author: romain
Date: Wed Oct 25 18:32:48 2006
New Revision: 10944
URL: http://svn.erp5.org?rev=10944&view=rev
Log:
Set the default action of BusinessTemplate to backup when installing.
It prevents to erase informations which where installed from another BT5.
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=10944&r1=10943&r2=10944&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py Wed Oct 25 18:32:48 2006
@@ -566,8 +566,7 @@
action = update_dict[path]
if action == 'nothing':
continue
- else:
- action = 'backup'
+ action = 'backup'
# get subobjects in path
path_list = path.split('/')
container_path = path_list[:-1]
@@ -639,7 +638,7 @@
wf_chain = subobjects_dict['workflow_chain']
chain_dict = getChainByType(context)[1]
default_chain = ''
- chain_dict['chain_%s' %(object_id)] = wf_chain
+ chain_dict['chain_%s' % (object_id)] = wf_chain
context.portal_workflow.manage_changeWorkflows(default_chain, props=chain_dict)
# import sub objects if there is
elif len(subobjects_dict) > 0:
@@ -1394,6 +1393,7 @@
chain_dict['chain_%s' % portal_type] = self._objects[path]
context.portal_workflow.manage_changeWorkflows(default_chain,
props=chain_dict)
+
def uninstall(self, context, **kw):
(default_chain, chain_dict) = getChainByType(context)
object_path = kw.get('object_path', None)
More information about the Erp5-report
mailing list