[Erp5-report] r38627 nicolas.dumazet - /erp5/trunk/products/ERP5/Tool/AlarmTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Sep 24 16:45:24 CEST 2010


Author: nicolas.dumazet
Date: Fri Sep 24 16:45:22 2010
New Revision: 38627

URL: http://svn.erp5.org?rev=38627&view=rev
Log:
similarly to what's being done on ActivityTool, also call setSite in AlarmTool
before processing a timer

Modified:
    erp5/trunk/products/ERP5/Tool/AlarmTool.py

Modified: erp5/trunk/products/ERP5/Tool/AlarmTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Tool/AlarmTool.py?rev=38627&r1=38626&r2=38627&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/AlarmTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Tool/AlarmTool.py [utf8] Fri Sep 24 16:45:22 2010
@@ -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




More information about the Erp5-report mailing list