|
Revision 1275
(checked in by fumanchu, 2 years ago)
|
Overhaul of config system:
- New docstring for config module!
- Put all entries into a config namespace. New deadlock, log, request and response namespaces.
- 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.
- Removed 'log_config' config entry. Use engine.on_start_engine_list.append(config.log_config) instead.
- Old 'dispatch' entry is now 'request.dispatch'.
- New log entries: log.error.file, log.error.function, log.access.file, log.access.function, log.screen.
- 'server.max_request_body_size' is now 'request.max_body_size'.
- environments now only apply to globalconf.
- The 'development' environment has been removed, since its settings were all the default anyway.
- The 'embedded' environment has been removed, since it duplicates the 'production' environment now.
- There's a new 'test_suite' environment.
- 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.
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
"""Regression test suite for CherryPy. |
|---|
| 2 |
|
|---|
| 3 |
Run test.py to exercise all tests. |
|---|
| 4 |
""" |
|---|
| 5 |
|
|---|