summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTres Seaver <tseaver@palladion.com>2009-07-20 14:56:09 +0000
committerTres Seaver <tseaver@palladion.com>2009-07-20 14:56:09 +0000
commit14bfc6c150233020eb27d67c1d1cdb8699d9b22e (patch)
tree9f792e11f74b041d553c603a60b9ef63e6e2e826 /docs
parenta95805481a0fbaa9ef888751f55549245094cd08 (diff)
downloadpyramid-14bfc6c150233020eb27d67c1d1cdb8699d9b22e.tar.gz
pyramid-14bfc6c150233020eb27d67c1d1cdb8699d9b22e.tar.bz2
pyramid-14bfc6c150233020eb27d67c1d1cdb8699d9b22e.zip
Fixed documentation bug showing invalid test for values from the ``matchdict``.
o They are stored as attributes of the ``Article``, rather than subitems.
Diffstat (limited to 'docs')
-rw-r--r--docs/narr/urldispatch.rst2
1 files changed, 1 insertions, 1 deletions
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: