Commit 8dee60d8 authored by Nicolas Dumazet's avatar Nicolas Dumazet

similarly to what's being done on ActivityTool, also call setSite in AlarmTool

before processing a timer


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38627 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 23fd134a
......@@ -46,6 +46,7 @@ import re
# minimal IP:Port regexp
NODE_RE = re.compile('^\d+\.\d+\.\d+\.\d+:\d+$')
from zope.site.hooks import setSite
try:
from Products.TimerService import getTimerService
except ImportError:
......@@ -210,6 +211,10 @@ class AlarmTool(BaseTool):
if not acquired:
return
try:
portal = self.getPortalObject()
setSite(portal)
# make sure our skin is set-up. On CMF 1.5 it's setup by acquisition,
# but on 2.2 it's by traversal, and our site probably wasn't traversed
# by the timerserver request, which goes into the Zope Control_Panel
......
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