From 44b2ca3219cf495ae0d3a66b81befdf368ef916d Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Mon, 23 Nov 2009 08:30:38 +0000 Subject: - 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. --- docs/narr/configuration.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'docs/narr/configuration.rst') 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() -- cgit v1.2.3