Repoze Blog

2010-08-11 16:17:00-05:00

Groundhog (Using BFG to Build a Microframework) #6: Events and Context Locals

In the sixth and final screencast in the Groundhog series, we allow our microframework's users to subscribe to and receive events, which are objects broadcast by BFG at various well-known points during its processing cycle. We also allow our users to define and send their own custom event types. Once we've built up some event machinery, we use it to implement "importable locals" (aka "stacked object proxies" or "context locals").

posted at: 16:17 | permalink