[Erp5-report] r20189 - /erp5/trunk/products/ERP5/Document/Alarm.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Mar 28 11:32:36 CET 2008
Author: vincent
Date: Fri Mar 28 11:32:32 2008
New Revision: 20189
URL: http://svn.erp5.org?rev=20189&view=rev
Log:
Do not fail if ActiveResult instance has no "result" property (it does not by default, so this code breaks existing alarms' display).
Modified:
erp5/trunk/products/ERP5/Document/Alarm.py
Modified: erp5/trunk/products/ERP5/Document/Alarm.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Alarm.py?rev=20189&r1=20188&r2=20189&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Alarm.py (original)
+++ erp5/trunk/products/ERP5/Document/Alarm.py Fri Mar 28 11:32:32 2008
@@ -362,7 +362,7 @@
if result.severity > result.INFO:
return True
# This is the default case
- if getattr(result, 'result'):
+ if getattr(result, 'result', False):
return True
return False
More information about the Erp5-report
mailing list