diff --git a/product/ERP5Type/CopySupport.py b/product/ERP5Type/CopySupport.py index a891e62b198d35efc668543428cfa6a2330d60f5..9f4d264296441fbc021bbfca3f6d087f7baa9435 100644 --- a/product/ERP5Type/CopySupport.py +++ b/product/ERP5Type/CopySupport.py @@ -29,7 +29,6 @@ from Products.ERP5Type.Utils import get_request from Products.CMFCore.WorkflowCore import WorkflowException from zLOG import LOG -import re class CopyContainer: """ @@ -177,25 +176,6 @@ class CopyContainer: if REQUEST is not None: return self.manage_main(self, REQUEST, update_menu=1) - copy_re=re.compile('^copy[0-9]*_of_') - - def _get_id(self, id): - # Allow containers to override the generation of - # object copy id by attempting to call its _get_id - # method, if it exists. - copy_match=self.copy_re.match(id) - if (copy_match) and (copy_match.end() < len(id)): - n=1 - orig_id=self.copy_re.sub('', id) - else: - n=0 - orig_id=id - while 1: - if self._getOb(id, None) is None: - return id - id='copy%s_of_%s' % (n and n+1 or '', orig_id) - n=n+1 - # Copy and paste support def manage_afterClone(self, item): """