diff options
| author | Tres Seaver <tseaver@palladion.com> | 2009-07-20 13:37:09 +0000 |
|---|---|---|
| committer | Tres Seaver <tseaver@palladion.com> | 2009-07-20 13:37:09 +0000 |
| commit | a95805481a0fbaa9ef888751f55549245094cd08 (patch) | |
| tree | 706ded74bc2e3ff3add17b9b9a0ca8856897cc83 | |
| parent | 7f05986f5040fc8581f0653ec3073052acae3e38 (diff) | |
| download | pyramid-a95805481a0fbaa9ef888751f55549245094cd08.tar.gz pyramid-a95805481a0fbaa9ef888751f55549245094cd08.tar.bz2 pyramid-a95805481a0fbaa9ef888751f55549245094cd08.zip | |
Fixed documentation bug showing wrong environment key for the ``matchdict``
produced by the matching route.
Thanks to leopay for the catch.
| -rw-r--r-- | CHANGES.txt | 3 | ||||
| -rw-r--r-- | docs/narr/urldispatch.rst | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index e08239190..6b6ce3de4 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,6 +1,9 @@ Next release ============ +- Fixed documentation bug showing wrong environment key for the ``matchdict`` + produced by the matching route. + - Added a workaround for a bug in Python 2.6, 2.6.1, and 2.6.2 having to do with a recursion error in the mimetypes module when trying to serve static files from Paste's FileApp: diff --git a/docs/narr/urldispatch.rst b/docs/narr/urldispatch.rst index 7e3454a2a..0a6109ff9 100644 --- a/docs/narr/urldispatch.rst +++ b/docs/narr/urldispatch.rst @@ -351,7 +351,7 @@ The ``.models`` module referred to above might look like so: class Article(object): def __init__(self, environ): - self.__dict__.update(environ['repoze.bfg.matchdict']) + self.__dict__.update(environ['bfg.routes.matchdict']) def is_root(self): return self['article'] == 'root' |
