diff options
author | Robert Brewer <fumanchu@aminus.org> | 2006-08-24 07:02:42 +0000 |
---|---|---|
committer | Robert Brewer <fumanchu@aminus.org> | 2006-08-24 07:02:42 +0000 |
commit | e8f50e034080ee4c9f97c503d1ce806fb2b51aea (patch) | |
tree | 57bcce766684de7ff4b91d4a6854a640aeea5a0a /cherrypy/test/modpy.py | |
parent | 27d3a90cc608f4efa0e6b6ca1ba48a995356b5ef (diff) | |
download | cherrypy-git-e8f50e034080ee4c9f97c503d1ce806fb2b51aea.tar.gz |
Overhaul of config system:
1. New docstring for config module!
2. Put all entries into a config namespace. New deadlock, log, request and response namespaces.
3. Request and response entries now directly modify attributes of cherrypy.request and .response, and consumer code looks up those attributes, not config. This also allows interactive inspection of defaults.
4. Removed 'log_config' config entry. Use engine.on_start_engine_list.append(config.log_config) instead.
5. Old 'dispatch' entry is now 'request.dispatch'.
6. New log entries: log.error.file, log.error.function, log.access.file, log.access.function, log.screen.
7. 'server.max_request_body_size' is now 'request.max_body_size'.
8. environments now only apply to globalconf.
9. The 'development' environment has been removed, since its settings were all the default anyway.
10. The 'embedded' environment has been removed, since it duplicates the 'production' environment now.
11. There's a new 'test_suite' environment.
12. Removed log_file_not_found (from static.py).
Something still needs to be done to config.wrap, so it can take dotted names as kwarg keys.
Diffstat (limited to 'cherrypy/test/modpy.py')
-rw-r--r-- | cherrypy/test/modpy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cherrypy/test/modpy.py b/cherrypy/test/modpy.py index 2d9f5ef1..6fa8a7d0 100644 --- a/cherrypy/test/modpy.py +++ b/cherrypy/test/modpy.py @@ -110,7 +110,7 @@ def wsgisetup(req): import cherrypy cherrypy.config.update({ - "log_file": os.path.join(curdir, "test.log"), + "log.error.file": os.path.join(curdir, "test.log"), "environment": "production", }) cherrypy.engine.start(blocking=False) |