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. --- CHANGES.txt | 14 ++++++++++++++ docs/narr/MyProject/myproject/configure.zcml | 1 - docs/narr/MyProject/myproject/run.py | 12 +++++++----- docs/narr/configuration.rst | 3 +-- docs/narr/project.rst | 11 +++++++---- repoze/bfg/paster_templates/alchemy/+package+/run.py_tmpl | 9 ++++++--- .../paster_templates/routesalchemy/+package+/run.py_tmpl | 7 ++++--- repoze/bfg/paster_templates/starter/+package+/run.py_tmpl | 12 ++++++------ repoze/bfg/paster_templates/zodb/+package+/run.py_tmpl | 9 +++++---- 9 files changed, 50 insertions(+), 28 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index cabb15d6c..951e97efd 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -12,6 +12,11 @@ Features function did not create a request object; it instead assigned ``None`` to the threadlocal request value. +- 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. + Bug Fixes ---------- @@ -186,6 +191,15 @@ Backwards Incompatibilites add an attribute to your unit test request object named ``registry`` with the result. +Deprecations +------------ + +- 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. + 1.1.1 (2009-11-21) ================== diff --git a/docs/narr/MyProject/myproject/configure.zcml b/docs/narr/MyProject/myproject/configure.zcml index 038f04da4..fe9633fe1 100644 --- a/docs/narr/MyProject/myproject/configure.zcml +++ b/docs/narr/MyProject/myproject/configure.zcml @@ -1,6 +1,5 @@ -