summaryrefslogtreecommitdiff
path: root/CHANGES.txt
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-08-23 23:54:21 -0400
committerChris McDonough <chrism@plope.com>2011-08-23 23:54:21 -0400
commit82a155592a31c71081a3d9eb63e4ed1230de67d4 (patch)
treefd18695a784380ca7f53dd57753d77de4dcb377b /CHANGES.txt
parent141f90581ce667ff12db8ef9ccd8a6e59d07ef73 (diff)
parenta8a9435e00a528cb13677e5b38415601a0cc3f8b (diff)
downloadpyramid-82a155592a31c71081a3d9eb63e4ed1230de67d4.tar.gz
pyramid-82a155592a31c71081a3d9eb63e4ed1230de67d4.tar.bz2
pyramid-82a155592a31c71081a3d9eb63e4ed1230de67d4.zip
Merge branch 'feature.configphases'
Diffstat (limited to 'CHANGES.txt')
-rw-r--r--CHANGES.txt27
1 files changed, 27 insertions, 0 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index c752f8005..86ae8c49d 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -171,6 +171,33 @@ Backwards Incompatibilities
instead make a separate call to the method for each callable. This change
was introduced to support the ``route_prefix`` feature of include.
+- It may be necessary to more strictly order configuration route and view
+ statements when using an "autocommitting" Configurator. In the past, it
+ was possible to add a view which named a route name before adding a route
+ with that name when you used an autocommitting configurator. For example::
+
+ config = Configurator(autocommit=True)
+ config.add_view('my.pkg.someview', route_name='foo')
+ config.add_route('foo', '/foo')
+
+ The above will raise an exception when the view attempts to add itself.
+ Now you must add the route before adding the view::
+
+ config = Configurator(autocommit=True)
+ config.add_route('foo', '/foo')
+ config.add_view('my.pkg.someview', route_name='foo')
+
+ This won't effect "normal" users, only people who have legacy BFG codebases
+ that used an autommitting configurator and possibly tests that use the
+ configurator API (the configurator returned by ``pyramid.testing.setUp`` is
+ an autocommitting configurator). The right way to get around this is to
+ use a non-autocommitting configurator (the default), which does not have
+ these directive ordering requirements.
+
+- The ``pyramid.config.Configurator.add_route`` directive no longer returns a
+ route object. This change was required to make route vs. view
+ configuration processing work properly.
+
Documentation
-------------