summaryrefslogtreecommitdiff
path: root/cherrypy/tutorial
diff options
context:
space:
mode:
authorRobert Brewer <fumanchu@aminus.org>2011-02-23 03:48:11 +0000
committerRobert Brewer <fumanchu@aminus.org>2011-02-23 03:48:11 +0000
commitd534fb34a175f92d47dbf5d99c9f9b41fbfb8539 (patch)
tree783966eae58535b29e0e12471827be2b9fa4affe /cherrypy/tutorial
parentb110b952e96ebe28e4d9c55d453591026a7526bd (diff)
downloadcherrypy-git-d534fb34a175f92d47dbf5d99c9f9b41fbfb8539.tar.gz
New logging.statistics in wsgiserver, plus new lib/cpstats.py
Diffstat (limited to 'cherrypy/tutorial')
-rw-r--r--cherrypy/tutorial/tut03_get_and_post.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/cherrypy/tutorial/tut03_get_and_post.py b/cherrypy/tutorial/tut03_get_and_post.py
index 283477d5..e745aac1 100644
--- a/cherrypy/tutorial/tut03_get_and_post.py
+++ b/cherrypy/tutorial/tut03_get_and_post.py
@@ -5,10 +5,12 @@ This tutorial shows you how to pass GET/POST variables to methods.
"""
import cherrypy
-
+from cherrypy.lib import cpstats
class WelcomePage:
+ cpstats = cpstats.StatsPage()
+
def index(self):
# Ask for the user's name.
return '''