From d6ce75af7b5d04e83f989e97f5d2c49aa5f7f5ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Sun, 10 Nov 2024 07:43:02 +0100 Subject: [PATCH] AlarmTool: stop using deprecated self.getServerAddress --- product/ERP5/Tool/AlarmTool.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/product/ERP5/Tool/AlarmTool.py b/product/ERP5/Tool/AlarmTool.py index 0682d6e088..7638873e08 100644 --- a/product/ERP5/Tool/AlarmTool.py +++ b/product/ERP5/Tool/AlarmTool.py @@ -39,6 +39,7 @@ from Products.ERP5Type.Tool.BaseTool import BaseTool from Products.ERP5Type import Permissions from Products.ERP5 import _dtmldir from Products.ERP5.mixin.timer_service import TimerServiceMixin +from Products.CMFActivity.ActivityTool import getServerAddress from DateTime import DateTime from six.moves import urllib @@ -186,7 +187,7 @@ class AlarmTool(TimerServiceMixin, BaseTool): if now - last_tic >= self.interval: self.tic() last_tic = now - elif _check_upgrade and self.getServerAddress() == alarmNode: + elif _check_upgrade and getServerAddress() == alarmNode: # BBB: check (once per run) if our node was alarm_node by address, and # migrate it. _check_upgrade = False -- 2.30.9