[Erp5-report] r12488 - /erp5/trunk/products/ERP5Type/CopySupport.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Jan 31 18:11:43 CET 2007
Author: seb
Date: Wed Jan 31 18:11:42 2007
New Revision: 12488
URL: http://svn.erp5.org?rev=12488&view=rev
Log:
use ActivityPendingError when we rename object while some activities are pending
Modified:
erp5/trunk/products/ERP5Type/CopySupport.py
Modified: erp5/trunk/products/ERP5Type/CopySupport.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/CopySupport.py?rev=12488&r1=12487&r2=12488&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/CopySupport.py (original)
+++ erp5/trunk/products/ERP5Type/CopySupport.py Wed Jan 31 18:11:42 2007
@@ -27,6 +27,7 @@
from Products.ERP5Type.Utils import get_request
from Products.CMFCore.WorkflowCore import WorkflowException
from Products.CMFCore.CatalogTool import CatalogTool as CMFCoreCatalogTool
+from Products.CMFActivity.Errors import ActivityPendingError
from zLOG import LOG
@@ -134,7 +135,8 @@
portal_activities = None
if portal_activities is not None:
if portal_activities.countMessage(path=ob.getPath())>0:
- raise ValueError, 'Sorry, some message are pending'
+ raise ActivityPendingError, 'Sorry, pending activities prevent ' \
+ + 'changing id at this current stage'
# Search for categories that have to be updated in sub objects.
self._recursiveSetActivityAfterTag(ob)
More information about the Erp5-report
mailing list