[Web-SIG] Web Site Process Bus

Robert Brewer fumanchu at amor.org
Mon Jun 25 22:51:09 CEST 2007


Benji York wrote:
> Robert Brewer wrote:
> > I'd like to continue talking about standardization on 
> site-wide process
> > state and services.
> 
> Perhaps zope.event would be a good fit. 
> http://svn.zope.org/zope.event/trunk/src/zope/event/README.txt
> ?view=markup

All 4 lines of it? ;)

    subscribers = []
    
    def notify(event):
        for subscriber in subscribers:
            subscriber(event)

Seriously, though, this handles the notification but not the state
machine, which I think is critical to the effort. It also doesn't do any
error-handling for misbehaving subscribers, so not all subscribers are
guaranteed to run if there's an unhandled error in an earlier
subscriber. It also sends all events to all subscribers, instead of
partitioning the subscribers. And finally, I don't want "import
zope.event" in my framework.


Robert Brewer
System Architect
Amor Ministries
fumanchu at amor.org


More information about the Web-SIG mailing list