Commit b9ceb45e authored by Julien Muchembled's avatar Julien Muchembled

Fix Alarm.sense method after ActiveResult cleanup

See commit ef5d6d9c
parent 1917a412
...@@ -37,6 +37,7 @@ from Products.ERP5Type import Permissions, PropertySheet ...@@ -37,6 +37,7 @@ from Products.ERP5Type import Permissions, PropertySheet
from Products.ERP5Type.XMLObject import XMLObject from Products.ERP5Type.XMLObject import XMLObject
from Products.ERP5Security.ERP5UserManager import SUPER_USER from Products.ERP5Security.ERP5UserManager import SUPER_USER
from Products.ERP5.mixin.periodicity import PeriodicityMixin from Products.ERP5.mixin.periodicity import PeriodicityMixin
from zLOG import INFO
class Alarm(XMLObject, PeriodicityMixin): class Alarm(XMLObject, PeriodicityMixin):
""" """
...@@ -203,7 +204,7 @@ class Alarm(XMLObject, PeriodicityMixin): ...@@ -203,7 +204,7 @@ class Alarm(XMLObject, PeriodicityMixin):
# active process but no method_id is defined # active process but no method_id is defined
for result in process.getResultList(): for result in process.getResultList():
# This is useful is result is returned as a Return instance # This is useful is result is returned as a Return instance
if result.severity > result.INFO: if result.severity > INFO:
return True return True
# This is the default case # This is the default case
if getattr(result, 'result', False): if getattr(result, 'result', False):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment