diff options
| -rw-r--r-- | CHANGES.txt | 4 | ||||
| -rw-r--r-- | docs/narr/urldispatch.rst | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index 6b6ce3de4..551368b24 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,6 +1,10 @@ Next release ============ +- Fixed documentation bug showing invalid test for values from the + ``matchdict``: they are stored as attributes of the ``Article``, rather + than subitems. + - Fixed documentation bug showing wrong environment key for the ``matchdict`` produced by the matching route. diff --git a/docs/narr/urldispatch.rst b/docs/narr/urldispatch.rst index 0a6109ff9..fdaea228f 100644 --- a/docs/narr/urldispatch.rst +++ b/docs/narr/urldispatch.rst @@ -354,7 +354,7 @@ The ``.models`` module referred to above might look like so: self.__dict__.update(environ['bfg.routes.matchdict']) def is_root(self): - return self['article'] == 'root' + return self.article == 'root' The ``.views`` module referred to above might look like so: |
