From 4813cc849d9b7222c31694e146be6ae9a5ef1ed4 Mon Sep 17 00:00:00 2001
From: Wenjie Zheng <wenjie.zheng@tiolive.com>
Date: Sun, 31 May 2015 18:51:42 +0000
Subject: [PATCH] patches/WorkflowTool.py: remove ImmutableId patche.

---
 product/ERP5Type/patches/WorkflowTool.py | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/product/ERP5Type/patches/WorkflowTool.py b/product/ERP5Type/patches/WorkflowTool.py
index 0a4673aa21..a59274831a 100644
--- a/product/ERP5Type/patches/WorkflowTool.py
+++ b/product/ERP5Type/patches/WorkflowTool.py
@@ -65,18 +65,6 @@ class ExclusionTuple(tuple):
   """
   pass
 
-def ImmutableId_setId(self, id):
-  """ patch which allows modifying the Id of portal_workflow
-      for the sake of workflow tool migration.
-  """
-  if self.getId() in ['portal_workflow', 'portal_workflow_new']:
-    pass
-  else:
-    if id != self.getId():
-      raise ValueError('Changing the id of this object is forbidden: %s'
-                       % self.getId())
-ImmutableId._setId = ImmutableId_setId
-
 def getValidCriterionDict(worklist_match_dict, sql_catalog,
                           workflow_worklist_key):
   valid_criterion_dict = {}
-- 
2.30.9