summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Piercy <web@stevepiercy.com>2016-02-16 03:07:01 -0800
committerSteve Piercy <web@stevepiercy.com>2016-02-16 03:07:01 -0800
commit583caef0ca5a803f8784b502d2661efd6d74021b (patch)
tree1253142d07d45993c1aaf4a87f8e4fb366be72e0
parent3ef43f3560ed1b28def03bb8973c0f287134ba6b (diff)
downloadpyramid-583caef0ca5a803f8784b502d2661efd6d74021b.tar.gz
pyramid-583caef0ca5a803f8784b502d2661efd6d74021b.tar.bz2
pyramid-583caef0ca5a803f8784b502d2661efd6d74021b.zip
minor grammar and punctuation through "wrapping up"
-rw-r--r--docs/designdefense.rst11
1 files changed, 6 insertions, 5 deletions
diff --git a/docs/designdefense.rst b/docs/designdefense.rst
index bd38e5194..28da84368 100644
--- a/docs/designdefense.rst
+++ b/docs/designdefense.rst
@@ -1516,11 +1516,11 @@ that the server can interface with a WSGI application is placed on the server
developer, not the web framework developer, making it more likely to be timely
and correct.
-Wrapping Up
+Wrapping up
+++++++++++
-Here's a diagrammed version of the simplest pyramid application, where
-comments take into account what we've discussed in the
+Here's a diagrammed version of the simplest pyramid application, where the
+inlined comments take into account what we've discussed in the
:ref:`microframeworks_smaller_hello_world` section.
.. code-block:: python
@@ -1531,16 +1531,17 @@ comments take into account what we've discussed in the
def hello_world(request): # accepts a request; no request thread local reqd
# explicit response object means no response threadlocal
- return Response('Hello world!')
+ return Response('Hello world!')
if __name__ == '__main__':
from pyramid.config import Configurator
- config = Configurator() # no global application object.
+ config = Configurator() # no global application object
config.add_view(hello_world) # explicit non-decorator registration
app = config.make_wsgi_app() # explicitly WSGI
server = make_server('0.0.0.0', 8080, app)
server.serve_forever() # explicitly WSGI
+
Pyramid Doesn't Offer Pluggable Apps
------------------------------------