Commit c98ccfc5 authored by Aurel's avatar Aurel

if no report method defined, don't fail


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7804 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1bd22867
...@@ -136,8 +136,10 @@ class Alarm(Periodicity, XMLObject): ...@@ -136,8 +136,10 @@ class Alarm(Periodicity, XMLObject):
explain the problem. We don't do calculation at this time, it should explain the problem. We don't do calculation at this time, it should
be made by activeSense. be made by activeSense.
""" """
method_id = self.getReportMethodId() method_id = self.getReportMethodId(None)
LOG('Alarm.report, method_id',0,method_id) #LOG('Alarm.report, method_id',0,method_id)
if method_id is None:
return ''
method = getattr(self,method_id) method = getattr(self,method_id)
process = self.getCurrentActiveProcess() process = self.getCurrentActiveProcess()
if process is None: if process is None:
......
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