summaryrefslogtreecommitdiff
path: root/CHANGES.txt
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2008-11-12 20:15:24 +0000
committerChris McDonough <chrism@agendaless.com>2008-11-12 20:15:24 +0000
commiteb6afe916a2c7456d4398e2f0df04ebacccd7f30 (patch)
tree5b8fb2a8a119c3209f69c417a07e5a7e6c9dbd3a /CHANGES.txt
parent720c8893749556208296af0ee5adcfe9eb373ec7 (diff)
downloadpyramid-eb6afe916a2c7456d4398e2f0df04ebacccd7f30.tar.gz
pyramid-eb6afe916a2c7456d4398e2f0df04ebacccd7f30.tar.bz2
pyramid-eb6afe916a2c7456d4398e2f0df04ebacccd7f30.zip
- ``repoze.bfg.traversal.model_url`` now always appends a slash to
all generated URLs unless further elements are passed in as the third and following arguments. Rationale: views often use ``model_url`` without the third-and-following arguments in order to generate a URL for a model in order to point at the default view of a model. The URL that points to the default view of the *root* model is technically ``http://mysite/`` as opposed to ``http://mysite`` (browsers happen to ask for '/' implicitly in the GET request). Because URLs are never automatically generated for anything *except* models by ``model_url``, and because the root model is not really special, we continue this pattern. The impact of this change is minimal (at most you will have too many slashes in your URL, which BFG deals with gracefully anyway). Prep for 0.4.8.
Diffstat (limited to 'CHANGES.txt')
-rw-r--r--CHANGES.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index 01f6d3676..f3db37337 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,3 +1,21 @@
+0.4.8 (11/12/2008)
+
+ Backwards Incompatibilities
+
+ - ``repoze.bfg.traversal.model_url`` now always appends a slash to
+ all generated URLs unless further elements are passed in as the
+ third and following arguments. Rationale: views often use
+ ``model_url`` without the third-and-following arguments in order
+ to generate a URL for a model in order to point at the default
+ view of a model. The URL that points to the default view of the
+ *root* model is technically ``http://mysite/`` as opposed to
+ ``http://mysite`` (browsers happen to ask for '/' implicitly in
+ the GET request). Because URLs are never automatically generated
+ for anything *except* models by ``model_url``, and because the
+ root model is not really special, we continue this pattern. The
+ impact of this change is minimal (at most you will have too many
+ slashes in your URL, which BFG deals with gracefully anyway).
+
0.4.7 (11/11/2008)
Features