I've been thinking about events
for the 0.8 series of SQLObject. I'm thinking about using
PyDispatcher, but there's
still some open questions.
Jim Fulton actually got me thinking about events a while ago, in lieu
of "hooks"... PyCon 2003, I guess. He made a presentation at PyCon
2005
too, but it didn't resonate in the same way, it just seemed too low
level; PyDispatcher isn't very complex, but it's a bit higher level.
I think Jim was really proposing that higher level systems be built on
the low-level systems, but I dunno... it's too abstract then to mean
much to me.
Anyway, that's what I'm thinking about. The events, at least to
start, would be at a fairly low level -- covering things like creating
classes and instances, maybe creates and deletes.
One concern I have is that anything can be listening for an event, so
it's hard to know what all will be effected. When that event is
raised it's open season, anything could react. Especially when
there's feedback from the events (which I'm planning on) I can imagine
confusing ensuing. So... I dunno. Logging?