diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-11-19 11:48:59 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-11-19 11:48:59 +0000 |
| commit | 9966517cfaada7b7dc885f69feffc8f955beb801 (patch) | |
| tree | 06ba99223c3102619f270176a352bb0f15029b5c /repoze/bfg/configuration.py | |
| parent | a32d2a29df8948694efc78e2d30e7059f80deff7 (diff) | |
| download | pyramid-9966517cfaada7b7dc885f69feffc8f955beb801.tar.gz pyramid-9966517cfaada7b7dc885f69feffc8f955beb801.tar.bz2 pyramid-9966517cfaada7b7dc885f69feffc8f955beb801.zip | |
Test make_wsgi_app.
Diffstat (limited to 'repoze/bfg/configuration.py')
| -rw-r--r-- | repoze/bfg/configuration.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/repoze/bfg/configuration.py b/repoze/bfg/configuration.py index 0c64d7411..6d8904cfc 100644 --- a/repoze/bfg/configuration.py +++ b/repoze/bfg/configuration.py @@ -68,9 +68,8 @@ class Configurator(object): """ A wrapper around the registry that performs configuration tasks """ def __init__(self, registry=None): if registry is None: - self.make_default_registry() - else: - self.reg = registry + registry = self.make_default_registry() + self.reg = registry def make_default_registry(self): self.reg = Registry() @@ -95,9 +94,7 @@ class Configurator(object): # we send. manager.push({'registry':self.reg, 'request':None}) try: - # use dispatch here instead of registry.notify to make unit - # tests possible - dispatch(WSGIApplicationCreatedEvent(app)) + self.reg.notify(WSGIApplicationCreatedEvent(app)) finally: manager.pop() return app |
