diff options
| author | Chris McDonough <chrism@agendaless.com> | 2008-07-31 06:17:31 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2008-07-31 06:17:31 +0000 |
| commit | a0423aedb4abaf12b4008c0b229ec0ecad4ddfd8 (patch) | |
| tree | 6193a7bce3bdb05c6c9e81921d592b769cd071b1 /repoze/bfg/interfaces.py | |
| parent | 54302499c5ff609b4c615a7ae1d341e7d652dae3 (diff) | |
| download | pyramid-a0423aedb4abaf12b4008c0b229ec0ecad4ddfd8.tar.gz pyramid-a0423aedb4abaf12b4008c0b229ec0ecad4ddfd8.tar.bz2 pyramid-a0423aedb4abaf12b4008c0b229ec0ecad4ddfd8.zip | |
- Add event sends for INewRequest and INewResponse. See the
events.rst chapter in the documentation's ``api`` directory.
Diffstat (limited to 'repoze/bfg/interfaces.py')
| -rw-r--r-- | repoze/bfg/interfaces.py | 9 |
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') |
