Skip to content

Commit

Permalink
Fixed documentation bug showing invalid test for values from the ``ma…
Browse files Browse the repository at this point in the history
…tchdict``.

o They are stored as attributes of the ``Article``, rather than subitems.
  • Loading branch information
tseaver committed Jul 20, 2009
1 parent a958054 commit 14bfc6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion docs/narr/urldispatch.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit 14bfc6c

Please sign in to comment.