Łukasz Fidosz
2012-08-04 1c8b4c9eb5146adb713eea90fb82be3047d0b7d9
fixed line numbers in helloworld.py
1 files modified
10 ■■■■ changed files
docs/narr/firstapp.rst 10 ●●●● patch | view | raw | blame | history
docs/narr/firstapp.rst
@@ -112,7 +112,7 @@
.. literalinclude:: helloworld.py
   :linenos:
   :lines: 8-13
   :lines: 9-14
Let's break this down piece-by-piece.
@@ -121,7 +121,7 @@
.. literalinclude:: helloworld.py
   :linenos:
   :lines: 8-9
   :lines: 9-10
The ``if __name__ == '__main__':`` line in the code sample above represents a
Python idiom: the code inside this if clause is not invoked unless the script
@@ -154,7 +154,7 @@
.. ignore-next-block
.. literalinclude:: helloworld.py
   :linenos:
   :lines: 10-11
   :lines: 11-12
First line above calls the :meth:`pyramid.config.Configurator.add_route`
method, which registers a :term:`route` to match any url path that begins
@@ -174,7 +174,7 @@
.. ignore-next-block
.. literalinclude:: helloworld.py
   :linenos:
   :lines: 12
   :lines: 13
After configuring views and ending configuration, the script creates a WSGI
*application* via the :meth:`pyramid.config.Configurator.make_wsgi_app`
@@ -203,7 +203,7 @@
.. ignore-next-block
.. literalinclude:: helloworld.py
   :linenos:
   :lines: 13
   :lines: 14
Finally, we actually serve the application to requestors by starting up a
WSGI server.  We happen to use the :func:`paste.httpserver.serve` WSGI server