From a0423aedb4abaf12b4008c0b229ec0ecad4ddfd8 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Thu, 31 Jul 2008 06:17:31 +0000 Subject: - Add event sends for INewRequest and INewResponse. See the events.rst chapter in the documentation's ``api`` directory. --- repoze/bfg/interfaces.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'repoze/bfg/interfaces.py') diff --git a/repoze/bfg/interfaces.py b/repoze/bfg/interfaces.py index 489fe0559..4b2b626e6 100644 --- a/repoze/bfg/interfaces.py +++ b/repoze/bfg/interfaces.py @@ -69,3 +69,12 @@ class IViewPermissionFactory(Interface): class IURLDispatchModel(Interface): """ A model that is created as a result of URL dispatching """ +class INewRequest(Interface): + """ An event type that is emitted whenever repoze.bfg begins to + process a new request """ + request = Attribute('The request object') + +class INewResponse(Interface): + """ An event type that is emitted whenever any repoze.bfg view + returns a response.""" + response = Attribute('The response object') -- cgit v1.2.3