From 14bfc6c150233020eb27d67c1d1cdb8699d9b22e Mon Sep 17 00:00:00 2001 From: Tres Seaver Date: Mon, 20 Jul 2009 14:56:09 +0000 Subject: Fixed documentation bug showing invalid test for values from the ``matchdict``. o They are stored as attributes of the ``Article``, rather than subitems. --- docs/narr/urldispatch.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') 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: -- cgit v1.2.3