repoze.bfg.events

class repoze.bfg.events.NewRequest(request)
An instance of this class is emitted as an event whenever repoze.bfg begins to process a new request. The instance has an attribute, request, which is the request object. This class implements the repoze.bfg.interfaces.INewRequest interface.
class repoze.bfg.events.NewResponse(response)
An instance of this class is emitted as an event whenever any repoze.bfg view returns a response.. The instance has an attribute, response, which is the response object returned by the view. This class implements the repoze.bfg.interfaces.INewResponse interface.
class repoze.bfg.events.WSGIApplicationCreatedEvent(app)
An instance of this class is emitted as an event whenever a repoze.bfg application starts. The instance has an attribute, app, which is an instance of the repoze.bfg.router.Router class that will handle WSGI requests. This class implements the repoze.bfg.interfaces.IWSGIApplicationCreatedEvent interface.

See Using Events for more information about how to register code which subscribes to these events.

Previous topic

repoze.bfg.chameleon_zpt

Next topic

repoze.bfg.location

This Page