Commits

Sylvain Hellegouarch  committed a859536

typos

  • Participants
  • Parent commits 1a6bfb4

Comments (0)

Files changed (3)

File sphinx/source/deploy.rst

 		
 Notice how we attach the bus methods to the Twisted's own lifecycle.
 
-Save that code into a module named `cptw.py` and run it as follow:
+Save that code into a module named `cptw.py` and run it as follows:
 
 .. code-block:: bash
 
     wsgiapp = cherrypy.tree.mount(Root())
 
 Save this into a Python module called `mymod.py` and run
-it as follow:
+it as follows:
 
 
 .. code-block:: bash

File sphinx/source/extend.rst

       cherrypy.quickstart(ECommerce(), '/')
 
 In this example, we publish a `cart` instance to
-`db-save` channel. One or many subscirbers can then
+`db-save` channel. One or many subscribers can then
 react to that message and the application doesn't
 have to know about them.
 
 ^^^^^^^
 
 Plugins, simply put, are entities that play with the bus, either by
-publishing or subscirbing to channels, usually both at the same time.
+publishing or subscribing to channels, usually both at the same time.
 
 .. important::
 
 ~~~~~~~~~~~~~~~
 
 To enable the plugin, it has to be registered to the the 
-bus as follow:
+bus as follows:
 
 .. code-block:: python
 
 Disable a plugin
 ~~~~~~~~~~~~~~~~
 
-You can also unregister a plugin as follow:
+You can also unregister a plugin as follows:
 
 .. code-block:: python
 
     
    cherrypy.tools.logit = cherrypy.Tool('before_finalize', log_it)
 
-Using that tool is as simple as follow:
+Using that tool is as simple as follows:
 
 .. code-block:: python
 

File sphinx/source/tutorials.rst

       cherrypy.quickstart(HelloWorld())
 
 Store this code snippet into a file named `tut01.py` and
-execute it as follow:
+execute it as follows:
 
 .. code-block:: bash
 
    if __name__ == '__main__':
        cherrypy.quickstart(StringGenerator())
 
-Save this into a file named `tut02.py` and run it as follow:
+Save this into a file named `tut02.py` and run it as follows:
 
 .. code-block:: bash
 
 
 - `http://` which roughly indicates it's a URL using the HTTP protocol (see :rfc:`2616`).
 - `localhost:8080` is the server's address. It's made of a hostname and a port.
-- `/generate` which is the path segment of the URL. This is what ultimately uses to
-  try and locate an appropriate exposed function or method to respond.
+- `/generate` which is the path segment of the URL. This is what CherryPy uses to
+  locate an :term:`exposed` function or method to respond.
 
 Here CherryPy uses the `index()` method to handle `/` and the
 `generate()` method to handle `/generate`
    if __name__ == '__main__':
        cherrypy.quickstart(StringGenerator())
 
-Save this into a file named `tut03.py` and run it as follow:
+Save this into a file named `tut03.py` and run it as follows:
 
 .. code-block:: bash
 
    if __name__ == '__main__':
        cherrypy.quickstart(StringGenerator())
 
-Save this into a file named `tut04.py` and run it as follow:
+Save this into a file named `tut04.py` and run it as follows:
 
 .. code-block:: bash
 
         }
         cherrypy.quickstart(StringGenerator(), '/', conf)
 
-Save this into a file named `tut05.py` and run it as follow:
+Save this into a file named `tut05.py` and run it as follows:
 
 .. code-block:: bash
 
         }
         cherrypy.quickstart(StringGenerator(), '/', conf)
 
-Save this into a file named `tut06.py` and run it as follow:
+Save this into a file named `tut06.py` and run it as follows:
 
 .. code-block:: bash
 
 It's not unusual nowadays that web applications expose some sort
 of datamodel or computation functions. Without going into
 its details, one strategy is to follow the `REST principles
-edicted by Roy T. Fielding in his thesis 
-<https://www.ics.uci.edu/~fielding/pubs/dissertation/rest_arch_style.htm>`_.
+edicted by Roy T. Fielding
+<http://www.ibm.com/developerworks/library/ws-restful/index.html>`_.
 
 Roughly speaking, it assumes that you can identify a resource
 and that you can address that resource through that identifier.
         cherrypy.quickstart(StringGeneratorWebService(), '/', conf)
 
 
-Save this into a file named `tut07.py` and run it as follow:
+Save this into a file named `tut07.py` and run it as follows:
 
 .. code-block:: bash
 
         cherrypy.quickstart(webapp, '/', conf)
 
 
-Save this into a file named `tut08.py` and run it as follow:
+Save this into a file named `tut08.py` and run it as follows:
 
 .. code-block:: bash
 
         cherrypy.quickstart(webapp, '/', conf)
 
 
-Save this into a file named `tut09.py` and run it as follow:
+Save this into a file named `tut09.py` and run it as follows:
 
 .. code-block:: bash