diff options
| author | Gustavo Picon <tabo@tabo.pe> | 2014-01-12 20:04:16 -0500 |
|---|---|---|
| committer | Gustavo Picon <tabo@tabo.pe> | 2014-01-12 20:04:16 -0500 |
| commit | 89b473735d830a1eda091da5f726ea74a110f7ea (patch) | |
| tree | 07c1716a9c20b3366ce70d1b8932a44eb69e8ea1 /cherrypy/tutorial | |
| parent | ebbf43f5ff35c39d5f936b47a5a68d54eaaf27cf (diff) | |
| download | cherrypy-git-89b473735d830a1eda091da5f726ea74a110f7ea.tar.gz | |
More PEP8 work.
Diffstat (limited to 'cherrypy/tutorial')
| -rw-r--r-- | cherrypy/tutorial/tut02_expose_methods.py | 6 | ||||
| -rw-r--r-- | cherrypy/tutorial/tut04_complex_site.py | 10 | ||||
| -rw-r--r-- | cherrypy/tutorial/tut10_http_errors.py | 6 |
3 files changed, 15 insertions, 7 deletions
diff --git a/cherrypy/tutorial/tut02_expose_methods.py b/cherrypy/tutorial/tut02_expose_methods.py index 6c6446eb..64a10f26 100644 --- a/cherrypy/tutorial/tut02_expose_methods.py +++ b/cherrypy/tutorial/tut02_expose_methods.py @@ -12,13 +12,13 @@ class HelloWorld: def index(self): # Let's link to another method here. - return 'We have an <a href="showMessage">important message</a> for you!' + return 'We have an <a href="show_msg">important message</a> for you!' index.exposed = True - def showMessage(self): + def show_msg(self): # Here's the important message! return "Hello world!" - showMessage.exposed = True + show_msg.exposed = True import os.path tutconf = os.path.join(os.path.dirname(__file__), 'tutorial.conf') diff --git a/cherrypy/tutorial/tut04_complex_site.py b/cherrypy/tutorial/tut04_complex_site.py index d870388e..e0660024 100644 --- a/cherrypy/tutorial/tut04_complex_site.py +++ b/cherrypy/tutorial/tut04_complex_site.py @@ -49,8 +49,12 @@ class LinksPage: <p>Here are some useful links:</p> <ul> - <li><a href="http://www.cherrypy.org">The CherryPy Homepage</a></li> - <li><a href="http://www.python.org">The Python Homepage</a></li> + <li> + <a href="http://www.cherrypy.org">The CherryPy Homepage</a> + </li> + <li> + <a href="http://www.python.org">The Python Homepage</a> + </li> </ul> <p>You can check out some extra useful @@ -70,7 +74,7 @@ class ExtraLinksPage: <ul> <li><a href="http://del.icio.us">del.icio.us</a></li> - <li><a href="http://www.mornography.de">Hendrik's weblog</a></li> + <li><a href="http://www.cherrypy.org">CherryPy</a></li> </ul> <p>[<a href="../">Return to links page</a>]</p>''' diff --git a/cherrypy/tutorial/tut10_http_errors.py b/cherrypy/tutorial/tut10_http_errors.py index a18777ef..c0e9893b 100644 --- a/cherrypy/tutorial/tut10_http_errors.py +++ b/cherrypy/tutorial/tut10_http_errors.py @@ -33,7 +33,11 @@ class HTTPErrorDemo(object): <html><body> <p>Toggle tracebacks <a href="toggleTracebacks">%s</a></p> <p><a href="/doesNotExist">Click me; I'm a broken link!</a></p> - <p><a href="/error?code=403">Use a custom error page from a file.</a></p> + <p> + <a href="/error?code=403"> + Use a custom error page from a file. + </a> + </p> <p>These errors are explicitly raised by the application:</p> <ul> <li><a href="/error?code=400">400</a></li> |
