[Erp5-report] r10595 - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Oct 6 15:09:49 CEST 2006


Author: alex
Date: Fri Oct  6 15:09:47 2006
New Revision: 10595

URL: http://svn.erp5.org?rev=10595&view=rev
Log:
fixed uninstall method of WorkflowChainItem: it was removing all workflow
chains declared in the business template

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=10595&r1=10594&r2=10595&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py Fri Oct  6 15:09:47 2006
@@ -1394,7 +1394,12 @@
                                                    props=chain_dict)
   def uninstall(self, context, **kw):
     (default_chain, chain_dict) = getChainByType(context)
-    for path in self._objects.keys():
+    object_path = kw.get('object_path', None)
+    if object_path is not None:
+      object_keys = [object_path]
+    else:
+      object_keys = self._objects.keys()
+    for path in object_keys:
       path_splitted = path.split('/', 1)
       if len(path_splitted) < 2:
         continue




More information about the Erp5-report mailing list