[Erp5-report] r15299 - /erp5/trunk/products/ERP5Type/patches/DCWorkflow.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Jul 24 17:27:25 CEST 2007
Author: vincent
Date: Tue Jul 24 17:27:24 2007
New Revision: 15299
URL: http://svn.erp5.org?rev=15299&view=rev
Log:
Save traceback along with exception so that the real traceback is displayed when exception is raised again later.
Modified:
erp5/trunk/products/ERP5Type/patches/DCWorkflow.py
Modified: erp5/trunk/products/ERP5Type/patches/DCWorkflow.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/patches/DCWorkflow.py?rev=15299&r1=15298&r2=15299&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/patches/DCWorkflow.py (original)
+++ erp5/trunk/products/ERP5Type/patches/DCWorkflow.py Tue Jul 24 17:27:24 2007
@@ -30,6 +30,7 @@
from Products.ERP5Type.Cache import CachingMethod
from Products.ERP5Type.Utils import convertToMixedCase
from string import join
+import sys
from zLOG import LOG
# Patch WorkflowUIMixin to add description on workflows
@@ -257,6 +258,7 @@
except ValidationFailed, validation_exc:
before_script_success = 0
before_script_error_message = validation_exc.msg
+ validation_exc_traceback = sys.exc_traceback
except ObjectMoved, moved_exc:
ob = moved_exc.getNewObject()
# Re-raise after transition
@@ -308,7 +310,7 @@
error_message = before_script_error_message)
if validation_exc :
# reraise validation failed exception
- raise validation_exc
+ raise validation_exc, None, validation_exc_traceback
return new_sdef
# Update state.
More information about the Erp5-report
mailing list