Commit 4a7c43e8 authored by Sebastien Robin's avatar Sebastien Robin

Alarm Tool: use the new getCurrentNode independent from Activity Tool

parent c1c87afe
...@@ -32,6 +32,7 @@ import threading ...@@ -32,6 +32,7 @@ import threading
from AccessControl import ClassSecurityInfo from AccessControl import ClassSecurityInfo
from AccessControl.SecurityManagement import getSecurityManager, \ from AccessControl.SecurityManagement import getSecurityManager, \
newSecurityManager, setSecurityManager newSecurityManager, setSecurityManager
from Products.CMFActivity.ActivityTool import getCurrentNode
from Products.ERP5Type.Globals import InitializeClass, DTMLFile, PersistentMapping from Products.ERP5Type.Globals import InitializeClass, DTMLFile, PersistentMapping
from Products.ERP5Type.Core.Folder import Folder from Products.ERP5Type.Core.Folder import Folder
from Products.ERP5Type.Tool.BaseTool import BaseTool from Products.ERP5Type.Tool.BaseTool import BaseTool
...@@ -164,7 +165,7 @@ class AlarmTool(TimerServiceMixin, BaseTool): ...@@ -164,7 +165,7 @@ class AlarmTool(TimerServiceMixin, BaseTool):
self.setupCurrentSkin(self.REQUEST) self.setupCurrentSkin(self.REQUEST)
# only start when we are the alarmNode # only start when we are the alarmNode
alarmNode = self.getAlarmNode() alarmNode = self.getAlarmNode()
current_node = self.getCurrentNode() current_node = getCurrentNode()
if alarmNode == '': if alarmNode == '':
self.setAlarmNode(current_node) self.setAlarmNode(current_node)
alarmNode = current_node alarmNode = current_node
......
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