diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-11-23 08:30:38 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-11-23 08:30:38 +0000 |
| commit | 44b2ca3219cf495ae0d3a66b81befdf368ef916d (patch) | |
| tree | 8ca301dbb764f7c6de494a75a93915d8130511bf /docs/narr/configuration.rst | |
| parent | bd39b16939147d667e9c483e341c0e0a14284eec (diff) | |
| download | pyramid-44b2ca3219cf495ae0d3a66b81befdf368ef916d.tar.gz pyramid-44b2ca3219cf495ae0d3a66b81befdf368ef916d.tar.bz2 pyramid-44b2ca3219cf495ae0d3a66b81befdf368ef916d.zip | |
- The ``repoze.bfg.router.make_app`` function is now nominally
deprecated. Its import and usage does not throw a warning, nor will
it probably ever disappear. However, using a
``repoze.bfg.configuration.Configurator`` class is now the preferred
way to generate a WSGI application.
- The ``run.py`` module in various ``repoze.bfg`` ``paster`` templates
now use a ``repoze.bfg.configuration.Configurator`` class instead of
the (now-legacy) ``repoze.bfg.router.make_app`` function to produce
a WSGI application.
Diffstat (limited to 'docs/narr/configuration.rst')
| -rw-r--r-- | docs/narr/configuration.rst | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/docs/narr/configuration.rst b/docs/narr/configuration.rst index c4f502031..6be8daa73 100644 --- a/docs/narr/configuration.rst +++ b/docs/narr/configuration.rst @@ -347,8 +347,7 @@ In a file named ``helloworld.py``: return Response('Hello world!') if __name__ == '__main__': - config = Configurator() - config.load_zcml() + config = Configurator(zcml_file='configure.zcml') app = config.make_wsgi_app() simple_server.make_server('', 8080, app).serve_forever() |
