summaryrefslogtreecommitdiff
path: root/repoze/bfg/interfaces.py
diff options
context:
space:
mode:
Diffstat (limited to 'repoze/bfg/interfaces.py')
-rw-r--r--repoze/bfg/interfaces.py9
1 files changed, 9 insertions, 0 deletions
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')