diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-12-30 17:50:37 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-12-30 17:50:37 +0000 |
| commit | 6637c5196305b07e4157fee8ea8191f5b25942bc (patch) | |
| tree | 5f88aaff9040a375d09016ea8c367981166e5848 | |
| parent | 793425accac28fd0bea3e406404b9b351556fddb (diff) | |
| download | pyramid-6637c5196305b07e4157fee8ea8191f5b25942bc.tar.gz pyramid-6637c5196305b07e4157fee8ea8191f5b25942bc.tar.bz2 pyramid-6637c5196305b07e4157fee8ea8191f5b25942bc.zip | |
Bugs detected by Ricardo Mendes.
| -rw-r--r-- | docs/narr/urldispatch.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/narr/urldispatch.rst b/docs/narr/urldispatch.rst index 728795e7f..77838a02c 100644 --- a/docs/narr/urldispatch.rst +++ b/docs/narr/urldispatch.rst @@ -149,7 +149,7 @@ matchdicts: .. code-block:: text foo/1/2 -> {'baz':u'1', 'bar':u'2'} - foo/abc/def -> {'baz':u'abc', 'bar':u'2'} + foo/abc/def -> {'baz':u'abc', 'bar':u'def'} It will not match the following patterns however: @@ -195,7 +195,7 @@ matchdicts: .. code-block:: text foo/1/2/ -> {'baz':1, 'bar':2, 'traverse':()} - foo/abc/def/a/b/c -> {'baz':abc, 'bar':2, 'traverse':('a', 'b', 'c')} + foo/abc/def/a/b/c -> {'baz':abc, 'bar':def, 'traverse':('a', 'b', 'c')} Note that when a ``*stararg`` remainder match is matched, the value put into the matchdict is turned into a tuple of path segments |
