diff options
| author | Malthe Borch <mborch@gmail.com> | 2008-08-29 18:24:03 +0000 |
|---|---|---|
| committer | Malthe Borch <mborch@gmail.com> | 2008-08-29 18:24:03 +0000 |
| commit | 003e522b5784f50bc6f41168d0b087cc25d2aa4f (patch) | |
| tree | c9d2386ab60f5cccb8124059ccc01f69c9d98be8 /repoze/bfg/interfaces.py | |
| parent | 7f4f1a3b3acd01f5d24dd70a40154509fe0c8760 (diff) | |
| download | pyramid-003e522b5784f50bc6f41168d0b087cc25d2aa4f.tar.gz pyramid-003e522b5784f50bc6f41168d0b087cc25d2aa4f.tar.bz2 pyramid-003e522b5784f50bc6f41168d0b087cc25d2aa4f.zip | |
Added event notification after WSGI application is created and configured.
Diffstat (limited to 'repoze/bfg/interfaces.py')
| -rw-r--r-- | repoze/bfg/interfaces.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/repoze/bfg/interfaces.py b/repoze/bfg/interfaces.py index 3a4c45373..d1a8fc63a 100644 --- a/repoze/bfg/interfaces.py +++ b/repoze/bfg/interfaces.py @@ -1,6 +1,9 @@ +from zope.interface import implements from zope.interface import Interface from zope.interface import Attribute +from zope.component.interfaces import IObjectEvent + class IRequest(Interface): """ Marker interface for a request object """ @@ -84,3 +87,14 @@ class ISettings(Interface): """ Runtime settings for repoze.bfg """ reload_templates = Attribute('Reload templates when they change') +class IWSGIApplicationCreatedEvent(IObjectEvent): + """ Event issued after the application has been created and + configured.""" + + app = Attribute(u"Published application") + +class WSGIApplicationCreatedEvent(object): + implements(IWSGIApplicationCreatedEvent) + + def __init__(self, app): + self.app = app |
