summaryrefslogtreecommitdiff
path: root/cherrypy/tutorial
diff options
context:
space:
mode:
authorSylvain Hellegouarch <sh@defuze.org>2006-05-22 17:35:05 +0000
committerSylvain Hellegouarch <sh@defuze.org>2006-05-22 17:35:05 +0000
commit2fcc23aa87227fca8922118dbe4b25ae03874b6d (patch)
treee3451f282ccb6dde4a5a2cb8800a486d1bc6db27 /cherrypy/tutorial
parentfd043bc12da4dedd1e850d26d741b5f93be0a28d (diff)
downloadcherrypy-git-2fcc23aa87227fca8922118dbe4b25ae03874b6d.tar.gz
All tutotials were missing an import os.path and could not run
Diffstat (limited to 'cherrypy/tutorial')
-rw-r--r--cherrypy/tutorial/tut01_helloworld.py1
-rw-r--r--cherrypy/tutorial/tut02_expose_methods.py1
-rw-r--r--cherrypy/tutorial/tut03_get_and_post.py1
-rw-r--r--cherrypy/tutorial/tut04_complex_site.py1
-rw-r--r--cherrypy/tutorial/tut05_derived_objects.py1
-rw-r--r--cherrypy/tutorial/tut06_default_method.py1
-rw-r--r--cherrypy/tutorial/tut07_sessions.py1
-rw-r--r--cherrypy/tutorial/tut08_generators_and_yield.py1
-rw-r--r--cherrypy/tutorial/tut09_files.py1
9 files changed, 9 insertions, 0 deletions
diff --git a/cherrypy/tutorial/tut01_helloworld.py b/cherrypy/tutorial/tut01_helloworld.py
index ccde9079..704773d2 100644
--- a/cherrypy/tutorial/tut01_helloworld.py
+++ b/cherrypy/tutorial/tut01_helloworld.py
@@ -27,6 +27,7 @@ class HelloWorld:
cherrypy.tree.mount(HelloWorld())
if __name__ == '__main__':
+ import os.path
# Start the CherryPy server.
cherrypy.config.update(os.path.join(os.path.dirname(__file__), 'tutorial.conf'))
cherrypy.server.start()
diff --git a/cherrypy/tutorial/tut02_expose_methods.py b/cherrypy/tutorial/tut02_expose_methods.py
index f6b0f410..3a47630d 100644
--- a/cherrypy/tutorial/tut02_expose_methods.py
+++ b/cherrypy/tutorial/tut02_expose_methods.py
@@ -22,6 +22,7 @@ class HelloWorld:
cherrypy.tree.mount(HelloWorld())
if __name__ == '__main__':
+ import os.path
cherrypy.config.update(os.path.join(os.path.dirname(__file__), 'tutorial.conf'))
cherrypy.server.start()
cherrypy.engine.start()
diff --git a/cherrypy/tutorial/tut03_get_and_post.py b/cherrypy/tutorial/tut03_get_and_post.py
index 7fe002e0..57b6cafc 100644
--- a/cherrypy/tutorial/tut03_get_and_post.py
+++ b/cherrypy/tutorial/tut03_get_and_post.py
@@ -44,6 +44,7 @@ cherrypy.tree.mount(WelcomePage())
if __name__ == '__main__':
+ import os.path
cherrypy.config.update(os.path.join(os.path.dirname(__file__), 'tutorial.conf'))
cherrypy.server.start()
cherrypy.engine.start()
diff --git a/cherrypy/tutorial/tut04_complex_site.py b/cherrypy/tutorial/tut04_complex_site.py
index dd930c38..05fcee8c 100644
--- a/cherrypy/tutorial/tut04_complex_site.py
+++ b/cherrypy/tutorial/tut04_complex_site.py
@@ -86,6 +86,7 @@ cherrypy.tree.mount(root)
if __name__ == '__main__':
+ import os.path
cherrypy.config.update(os.path.join(os.path.dirname(__file__), 'tutorial.conf'))
cherrypy.server.start()
cherrypy.engine.start()
diff --git a/cherrypy/tutorial/tut05_derived_objects.py b/cherrypy/tutorial/tut05_derived_objects.py
index 54684d2b..9d6f703f 100644
--- a/cherrypy/tutorial/tut05_derived_objects.py
+++ b/cherrypy/tutorial/tut05_derived_objects.py
@@ -73,6 +73,7 @@ cherrypy.tree.mount(HomePage())
if __name__ == '__main__':
+ import os.path
cherrypy.config.update(os.path.join(os.path.dirname(__file__), 'tutorial.conf'))
cherrypy.server.start()
cherrypy.engine.start()
diff --git a/cherrypy/tutorial/tut06_default_method.py b/cherrypy/tutorial/tut06_default_method.py
index 2a1fdb22..63c63e2f 100644
--- a/cherrypy/tutorial/tut06_default_method.py
+++ b/cherrypy/tutorial/tut06_default_method.py
@@ -54,6 +54,7 @@ cherrypy.tree.mount(UsersPage())
if __name__ == '__main__':
+ import os.path
cherrypy.config.update(os.path.join(os.path.dirname(__file__), 'tutorial.conf'))
cherrypy.server.start()
cherrypy.engine.start()
diff --git a/cherrypy/tutorial/tut07_sessions.py b/cherrypy/tutorial/tut07_sessions.py
index 07928006..5272c380 100644
--- a/cherrypy/tutorial/tut07_sessions.py
+++ b/cherrypy/tutorial/tut07_sessions.py
@@ -34,6 +34,7 @@ cherrypy.tree.mount(HitCounter())
if __name__ == '__main__':
+ import os.path
cherrypy.config.update(os.path.join(os.path.dirname(__file__), 'tutorial.conf'))
cherrypy.server.start()
cherrypy.engine.start()
diff --git a/cherrypy/tutorial/tut08_generators_and_yield.py b/cherrypy/tutorial/tut08_generators_and_yield.py
index 6d2e1239..4d6750ad 100644
--- a/cherrypy/tutorial/tut08_generators_and_yield.py
+++ b/cherrypy/tutorial/tut08_generators_and_yield.py
@@ -36,6 +36,7 @@ cherrypy.tree.mount(GeneratorDemo())
if __name__ == '__main__':
+ import os.path
cherrypy.config.update(os.path.join(os.path.dirname(__file__), 'tutorial.conf'))
cherrypy.server.start()
cherrypy.engine.start()
diff --git a/cherrypy/tutorial/tut09_files.py b/cherrypy/tutorial/tut09_files.py
index d6899920..97e69eed 100644
--- a/cherrypy/tutorial/tut09_files.py
+++ b/cherrypy/tutorial/tut09_files.py
@@ -94,6 +94,7 @@ class FileDemo(object):
cherrypy.tree.mount(FileDemo())
if __name__ == '__main__':
+ import os.path
# Start the CherryPy server.
cherrypy.config.update(os.path.join(os.path.dirname(__file__), 'tutorial.conf'))
cherrypy.server.start()