diff options
| author | Steve Piercy <web@stevepiercy.com> | 2013-11-16 16:13:02 -0800 |
|---|---|---|
| committer | Steve Piercy <web@stevepiercy.com> | 2013-11-16 16:13:02 -0800 |
| commit | e697c98813a4acd332da5688867e799adfc9b835 (patch) | |
| tree | c979ca54739133a35f1d61980c6078c6e42c6827 /docs/narr/urldispatch.rst | |
| parent | 94b754aac45e235b5b11a60489395b77c8195fdc (diff) | |
| parent | bd897bbcfd936d36ad9877a2f00792454767b7fb (diff) | |
| download | pyramid-e697c98813a4acd332da5688867e799adfc9b835.tar.gz pyramid-e697c98813a4acd332da5688867e799adfc9b835.tar.bz2 pyramid-e697c98813a4acd332da5688867e799adfc9b835.zip | |
Merge pull request #1193 from ztane/master
Indentation fixes
Diffstat (limited to 'docs/narr/urldispatch.rst')
| -rw-r--r-- | docs/narr/urldispatch.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/narr/urldispatch.rst b/docs/narr/urldispatch.rst index 61849c3c0..96ee5758e 100644 --- a/docs/narr/urldispatch.rst +++ b/docs/narr/urldispatch.rst @@ -492,7 +492,7 @@ The simplest route declaration which configures a route match to *directly* result in a particular view callable being invoked: .. code-block:: python - :linenos: + :linenos: config.add_route('idea', 'site/{id}') config.add_view('mypackage.views.site_view', route_name='idea') @@ -901,7 +901,7 @@ Details of the route matching decision for a particular request to the which you started the application from. For example: .. code-block:: text - :linenos: + :linenos: $ PYRAMID_DEBUG_ROUTEMATCH=true $VENV/bin/pserve development.ini Starting server in PID 13586. @@ -1060,7 +1060,7 @@ A custom route predicate may also *modify* the ``match`` dictionary. For instance, a predicate might do some type conversion of values: .. code-block:: python - :linenos: + :linenos: def integers(*segment_names): def predicate(info, request): @@ -1086,7 +1086,7 @@ To avoid the try/except uncertainty, the route pattern can contain regular expressions specifying requirements for that marker. For instance: .. code-block:: python - :linenos: + :linenos: def integers(*segment_names): def predicate(info, request): @@ -1128,7 +1128,7 @@ name. The ``pattern`` attribute is the route pattern. An example of using the route in a set of route predicates: .. code-block:: python - :linenos: + :linenos: def twenty_ten(info, request): if info['route'].name in ('ymd', 'ym', 'y'): |
