diff options
| author | Remi Delon <rdelon@cherrypy.org> | 2005-05-20 13:06:59 +0000 |
|---|---|---|
| committer | Remi Delon <rdelon@cherrypy.org> | 2005-05-20 13:06:59 +0000 |
| commit | e73cc5ecc4e77225f1f3fc96207ce3ca2a08fdb0 (patch) | |
| tree | 537747f02a144bfaf2dd3736f55476ae9047cb77 /cherrypy/tutorial | |
| parent | 902f0479e9e6991cbb2c1bbe6442e08ce35f6ea8 (diff) | |
| download | cherrypy-git-e73cc5ecc4e77225f1f3fc96207ce3ca2a08fdb0.tar.gz | |
Changed the config API
Diffstat (limited to 'cherrypy/tutorial')
| -rw-r--r-- | cherrypy/tutorial/01_helloworld.py | 2 | ||||
| -rw-r--r-- | cherrypy/tutorial/02_expose_methods.py | 2 | ||||
| -rw-r--r-- | cherrypy/tutorial/03_get_and_post.py | 2 | ||||
| -rw-r--r-- | cherrypy/tutorial/04_complex_site.py | 2 | ||||
| -rw-r--r-- | cherrypy/tutorial/05_derived_objects.py | 2 | ||||
| -rw-r--r-- | cherrypy/tutorial/06_aspects.py | 2 | ||||
| -rw-r--r-- | cherrypy/tutorial/07_default_method.py | 2 | ||||
| -rw-r--r-- | cherrypy/tutorial/08_sessions.py | 2 | ||||
| -rw-r--r-- | cherrypy/tutorial/09_generators_and_yield.py | 2 |
9 files changed, 9 insertions, 9 deletions
diff --git a/cherrypy/tutorial/01_helloworld.py b/cherrypy/tutorial/01_helloworld.py index 16620278..60d29167 100644 --- a/cherrypy/tutorial/01_helloworld.py +++ b/cherrypy/tutorial/01_helloworld.py @@ -27,6 +27,6 @@ class HelloWorld: cpg.root = HelloWorld() # Start the CherryPy server using the configuration file tutorial.conf. -cpg.config.loadConfigFile('tutorial.conf') +cpg.config.update(file = 'tutorial.conf') cpg.server.start() diff --git a/cherrypy/tutorial/02_expose_methods.py b/cherrypy/tutorial/02_expose_methods.py index b3a8ed86..23f2237e 100644 --- a/cherrypy/tutorial/02_expose_methods.py +++ b/cherrypy/tutorial/02_expose_methods.py @@ -23,5 +23,5 @@ class HelloWorld: showMessage.exposed = True cpg.root = HelloWorld() -cpg.config.loadConfigFile('tutorial.conf') +cpg.config.update(file = 'tutorial.conf') cpg.server.start() diff --git a/cherrypy/tutorial/03_get_and_post.py b/cherrypy/tutorial/03_get_and_post.py index 0cd988fa..7a062a2c 100644 --- a/cherrypy/tutorial/03_get_and_post.py +++ b/cherrypy/tutorial/03_get_and_post.py @@ -41,5 +41,5 @@ class WelcomePage: cpg.root = WelcomePage() -cpg.config.loadConfigFile('tutorial.conf') +cpg.config.update(file = 'tutorial.conf') cpg.server.start() diff --git a/cherrypy/tutorial/04_complex_site.py b/cherrypy/tutorial/04_complex_site.py index 6ff9085c..c4667b98 100644 --- a/cherrypy/tutorial/04_complex_site.py +++ b/cherrypy/tutorial/04_complex_site.py @@ -89,5 +89,5 @@ cpg.root.links = LinksPage() # no reason why you shouldn't let your root object take care of # creating all contained request handler objects. -cpg.config.loadConfigFile('tutorial.conf') +cpg.config.update(file = 'tutorial.conf') cpg.server.start() diff --git a/cherrypy/tutorial/05_derived_objects.py b/cherrypy/tutorial/05_derived_objects.py index 5b5935b2..a12b30ce 100644 --- a/cherrypy/tutorial/05_derived_objects.py +++ b/cherrypy/tutorial/05_derived_objects.py @@ -72,5 +72,5 @@ class AnotherPage(Page): cpg.root = HomePage() -cpg.config.loadConfigFile('tutorial.conf') +cpg.config.update(file = 'tutorial.conf') cpg.server.start() diff --git a/cherrypy/tutorial/06_aspects.py b/cherrypy/tutorial/06_aspects.py index 617e5027..24df158b 100644 --- a/cherrypy/tutorial/06_aspects.py +++ b/cherrypy/tutorial/06_aspects.py @@ -94,5 +94,5 @@ class AnotherPage(Page): cpg.root = HomePage() -cpg.config.loadConfigFile('tutorial.conf') +cpg.config.update(file = 'tutorial.conf') cpg.server.start() diff --git a/cherrypy/tutorial/07_default_method.py b/cherrypy/tutorial/07_default_method.py index 86cc80ce..066d2908 100644 --- a/cherrypy/tutorial/07_default_method.py +++ b/cherrypy/tutorial/07_default_method.py @@ -53,5 +53,5 @@ class UsersPage: cpg.root = UsersPage() -cpg.config.loadConfigFile('tutorial.conf') +cpg.config.update(file = 'tutorial.conf') cpg.server.start() diff --git a/cherrypy/tutorial/08_sessions.py b/cherrypy/tutorial/08_sessions.py index 5c04a9a8..fb7fe0c4 100644 --- a/cherrypy/tutorial/08_sessions.py +++ b/cherrypy/tutorial/08_sessions.py @@ -30,5 +30,5 @@ class HitCounter: cpg.root = HitCounter() -cpg.config.loadConfigFile('tutorial.conf') +cpg.config.update(file = 'tutorial.conf') cpg.server.start() diff --git a/cherrypy/tutorial/09_generators_and_yield.py b/cherrypy/tutorial/09_generators_and_yield.py index d618a758..f60303cd 100644 --- a/cherrypy/tutorial/09_generators_and_yield.py +++ b/cherrypy/tutorial/09_generators_and_yield.py @@ -32,5 +32,5 @@ class GeneratorDemo: index.exposed = True cpg.root = GeneratorDemo() -cpg.config.loadConfigFile('tutorial.conf') +cpg.config.update(file = 'tutorial.conf') cpg.server.start() |
