diff options
| author | Robert Brewer <fumanchu@aminus.org> | 2006-08-05 23:05:52 +0000 |
|---|---|---|
| committer | Robert Brewer <fumanchu@aminus.org> | 2006-08-05 23:05:52 +0000 |
| commit | 18b33b51a0183605747f0a2b36e3b464897c01d5 (patch) | |
| tree | fd03ad9627679849cc25265af81c934e03909370 /cherrypy/tutorial | |
| parent | ac1aeb9f0c7b98fcff1786d1b6806b6c73db0331 (diff) | |
| download | cherrypy-git-18b33b51a0183605747f0a2b36e3b464897c01d5.tar.gz | |
Changed server.start to server.quickstart, and server.start_all to server.start.
Diffstat (limited to 'cherrypy/tutorial')
| -rw-r--r-- | cherrypy/tutorial/bonus-sqlobject.py | 4 | ||||
| -rw-r--r-- | cherrypy/tutorial/tut02_expose_methods.py | 2 | ||||
| -rw-r--r-- | cherrypy/tutorial/tut03_get_and_post.py | 2 | ||||
| -rw-r--r-- | cherrypy/tutorial/tut04_complex_site.py | 2 | ||||
| -rw-r--r-- | cherrypy/tutorial/tut05_derived_objects.py | 2 | ||||
| -rw-r--r-- | cherrypy/tutorial/tut06_default_method.py | 2 | ||||
| -rw-r--r-- | cherrypy/tutorial/tut07_sessions.py | 2 | ||||
| -rw-r--r-- | cherrypy/tutorial/tut08_generators_and_yield.py | 2 | ||||
| -rw-r--r-- | cherrypy/tutorial/tut09_files.py | 2 | ||||
| -rw-r--r-- | cherrypy/tutorial/tut10_http_errors.py | 2 |
10 files changed, 10 insertions, 12 deletions
diff --git a/cherrypy/tutorial/bonus-sqlobject.py b/cherrypy/tutorial/bonus-sqlobject.py index fc5e756e..0c903611 100644 --- a/cherrypy/tutorial/bonus-sqlobject.py +++ b/cherrypy/tutorial/bonus-sqlobject.py @@ -165,6 +165,4 @@ class ContactManager: print "If you're running this application for the first time, please go to http://localhost:8080/reset once in order to create the database!" -cherrypy.tree.mount(ContactManager()) -cherrypy.server.start() -cherrypy.engine.start() +cherrypy.quickstart(ContactManager()) diff --git a/cherrypy/tutorial/tut02_expose_methods.py b/cherrypy/tutorial/tut02_expose_methods.py index 3a47630d..abde830f 100644 --- a/cherrypy/tutorial/tut02_expose_methods.py +++ b/cherrypy/tutorial/tut02_expose_methods.py @@ -24,6 +24,6 @@ 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.server.quickstart() cherrypy.engine.start() diff --git a/cherrypy/tutorial/tut03_get_and_post.py b/cherrypy/tutorial/tut03_get_and_post.py index 57b6cafc..43f4afb3 100644 --- a/cherrypy/tutorial/tut03_get_and_post.py +++ b/cherrypy/tutorial/tut03_get_and_post.py @@ -46,5 +46,5 @@ 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.server.quickstart() cherrypy.engine.start() diff --git a/cherrypy/tutorial/tut04_complex_site.py b/cherrypy/tutorial/tut04_complex_site.py index 05fcee8c..42467ca5 100644 --- a/cherrypy/tutorial/tut04_complex_site.py +++ b/cherrypy/tutorial/tut04_complex_site.py @@ -88,6 +88,6 @@ 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.server.quickstart() cherrypy.engine.start() diff --git a/cherrypy/tutorial/tut05_derived_objects.py b/cherrypy/tutorial/tut05_derived_objects.py index 9d6f703f..f922e03c 100644 --- a/cherrypy/tutorial/tut05_derived_objects.py +++ b/cherrypy/tutorial/tut05_derived_objects.py @@ -75,6 +75,6 @@ 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.server.quickstart() cherrypy.engine.start() diff --git a/cherrypy/tutorial/tut06_default_method.py b/cherrypy/tutorial/tut06_default_method.py index 63c63e2f..b8b5afdb 100644 --- a/cherrypy/tutorial/tut06_default_method.py +++ b/cherrypy/tutorial/tut06_default_method.py @@ -56,6 +56,6 @@ 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.server.quickstart() cherrypy.engine.start() diff --git a/cherrypy/tutorial/tut07_sessions.py b/cherrypy/tutorial/tut07_sessions.py index 5272c380..e7bb9772 100644 --- a/cherrypy/tutorial/tut07_sessions.py +++ b/cherrypy/tutorial/tut07_sessions.py @@ -36,6 +36,6 @@ 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.server.quickstart() cherrypy.engine.start() diff --git a/cherrypy/tutorial/tut08_generators_and_yield.py b/cherrypy/tutorial/tut08_generators_and_yield.py index 4d6750ad..396a1122 100644 --- a/cherrypy/tutorial/tut08_generators_and_yield.py +++ b/cherrypy/tutorial/tut08_generators_and_yield.py @@ -38,6 +38,6 @@ 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.server.quickstart() cherrypy.engine.start() diff --git a/cherrypy/tutorial/tut09_files.py b/cherrypy/tutorial/tut09_files.py index 97e69eed..bfa7b568 100644 --- a/cherrypy/tutorial/tut09_files.py +++ b/cherrypy/tutorial/tut09_files.py @@ -97,5 +97,5 @@ 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() + cherrypy.server.quickstart() cherrypy.engine.start() diff --git a/cherrypy/tutorial/tut10_http_errors.py b/cherrypy/tutorial/tut10_http_errors.py index 207e8cd0..e57ec396 100644 --- a/cherrypy/tutorial/tut10_http_errors.py +++ b/cherrypy/tutorial/tut10_http_errors.py @@ -74,5 +74,5 @@ cherrypy.tree.mount(HTTPErrorDemo()) if __name__ == '__main__': # Start the CherryPy server. cherrypy.config.update(os.path.join(os.path.dirname(__file__), 'tutorial.conf')) - cherrypy.server.start() + cherrypy.server.quickstart() cherrypy.engine.start() |
