Am Dienstag, 19. Dezember 2006 09:44 schrieb Thierry Florac: > Le mardi 19 décembre 2006 à 08:17 +0100, Christian Theune a écrit : > > Hi, > > > > Florian Lindner wrote: > > > Hello, > > > I have the following situation: > > > [...] > > Hi, > > I had a several problem to handle regular "alerts" which I solved in > this way : > - scheduling in done via the "schedule" package, available from Zope3 > SVN ; I created an "AlertManager" utility which is a subclass of > scheduler.CronTask (because my alerts are launched at fixed time, but > you can use other classes)
That's what I already use. > - objects which can raise alerts are registered with a specific > interface IAlert > - when the AlertManager is launched, it opens a new connection (via > ZEO.ClientStorage), search for registered components (via > zapi.getAllUtilitiesRegisteredFor(IAlert)) and call one of the > interface's methods which may raise the alert. In my use case an email > is sent, but it could be any kind of alert that Python can handle. This is the same approach that Christian suggested. I have answered to his posting. Thanks, Florian _______________________________________________ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users