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.py14
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