summaryrefslogtreecommitdiff
path: root/docs/narr/views.rst
diff options
context:
space:
mode:
authorBlaise Laflamme <blaise@laflamme.org>2010-11-28 12:28:30 -0500
committerBlaise Laflamme <blaise@laflamme.org>2010-11-28 12:29:25 -0500
commit16cd50c1a5beef98c3297d105c1ccffccb8872c5 (patch)
treea42f0b082048c13916d48ca23719ec8d78074642 /docs/narr/views.rst
parent099ac84208c019300174c0c8722cff7687bb43ca (diff)
downloadpyramid-16cd50c1a5beef98c3297d105c1ccffccb8872c5.tar.gz
pyramid-16cd50c1a5beef98c3297d105c1ccffccb8872c5.tar.bz2
pyramid-16cd50c1a5beef98c3297d105c1ccffccb8872c5.zip
Normalized narrative doc, code with linenos while text+bash don't
Diffstat (limited to 'docs/narr/views.rst')
-rw-r--r--docs/narr/views.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/narr/views.rst b/docs/narr/views.rst
index 9a42bb177..04d90fda8 100644
--- a/docs/narr/views.rst
+++ b/docs/narr/views.rst
@@ -1459,6 +1459,7 @@ configuration stanza:
.. ignore-next-block
.. code-block:: python
+ :linenos:
config.add_view('.views.my_view', name='my_view', request_method='POST',
context=MyModel, permission='read')
@@ -1488,6 +1489,7 @@ view configuration. To make :app:`Pyramid` process your
``scan`` method of a :class:`pyramid.configuration.Configurator`:
.. code-block:: python
+ :linenos:
# config is assumed to be an instance of the
# pyramid.configuration.Configurator class