Source

CherryPy / cherrypy / config.py

The branch 'cherrypy-2.x' does not exist.
Author Commit Message Labels Comments Date
Robert Brewer
2.x backport of [1226] (new server.socket_timeout config entry).
Branches
cherrypy-2.x
Robert Brewer
Fix to config.getAll (which isn't used internally and will disappear in future versions ;).
Branches
cherrypy-2.x
Christian Wyglendowski
Addresses #480. init_only can now be set in the config (server.init_only). server.class already existed. server.instance can also be set in the config. It corresponds to the "server" parameter in the cherrypy.server.start() method. Also added "embedded" server environment to simplify running CP embedded in mod_python, FastCGI, another WSGI server, etc.
Robert Brewer
Fix for #427 (Use RawConfigParser instead of ConfigParser).
Robert Brewer
server.thread_pool now defaults to 10.
Remi Delon
Added "cherrypy.lowercase_api" switch so that users can say "I'm using the new lowercase API" and get a (small) speed boost from it.
Robert Brewer
Removed redundant test for favicon.
Robert Brewer
Fix for #145. See the ticket for details about this fix.
Remi Delon
Fix for #416. The default favicon.ico is now served by a default static_filter entry in the default config (much cleaner than making a special case for favicon.ico in the code).
Remi Delon
More PEP 8 (including objectPath -> object_path); Changed virtualhostfilter to conform to PEP8; Fixes to sessionauthenticatefilter
Robert Brewer
Made helper custom error handler backward-compatible from 2.2 to 2.1.
Remi Delon
Big change: camelCase to lower_with_underscore names (still need to update the book)
Robert Brewer
Got rid of some superfluous custom exceptions.
Robert Brewer
Logging of request headers: 1. Changed "showRequestHeaders" to "logRequestHeaders". 2. Moved header logic from _cpLogMessage (which is not just for errors) to _cpOnHTTPError. 3. Added "logTracebacks" and "logRequestHeaders" to _cputil.outputConfigMap.
Sylvain Hellegouarch
Moved the code handling OPTIONS * request to _cputil to a special function attribute called _cpGlobalInformation. Added support for printing the HTTP request headers when an error is logged. This can be controlled via server.showRequestHeaders in the config settings.
Robert Brewer
Moved filter-handling code into lib.filter.__init__.py. Also moved unrepr and modules(), attributes() functions into cptools.
Robert Brewer
Fix for #374 (reduce license boilerplate to a single LICENSE.txt file).
Robert Brewer
Fix for #356 (formalize server.environment as a set of config defaults). New server.logFileNotFound boolean.
Robert Brewer
Fix for #373 (arbitrary mount points, or "virtual roots"). All internal use of request.path has been changed to inspect request.objectPath instead (the "rewritten path"). The request.path should never be rewritten; instead, it should only be used to generate new URL's based on the original path. The request.originalPath attribute can now probably be deprecated.
Robert Brewer
1. Fix for #305 (produce an error if a custom error page file can not be opened). 2. Also, a fix in _cputil.getErrorPage, where messages (and other kwargs set to None) were not printing defaults. 3. Removed defunct "server.httpErrors" config entry.
Remi Delon
Implemented ticket #90 (still need to write docs though)
Michael Robinson
httperrors branch merged into the trunk, the configuration paramater "showTracebacks" is now "server.showTracebacks"
Michael Robinson
The maximum size of a post body can know be limited using sever.maxRequestSize, this does not test the header size! (yet)
kmierle
For config.py make first line of docstrings a one-line summary; needed for somoe python editors.
kmierle
Minor docstring improvements to config.py. All public config.py functions now have docstrings.
Robert Brewer
Bug in config-file parsing: needed try/finally: close block.
Robert Brewer
All raised exceptions now conform to "raise Exception([arg])" syntax (no more "raise Exception" or "raise Exception, arg". See http://mail.python.org/pipermail/python-dev/2005-August/055687.html for Guido's pronouncement, which is now part of PEP 8.
Robert Brewer
Oops. Forgot a file.
Robert Brewer
1. Config section [global] (pathless) is now distinct from [/] (root path); they are no longer synonyms. "global" is the parent of "/". 2. The Request-URI is now parsed much earlier in Request processing, so that onStartResource and error filter methods may have access to it. 3. Absolute URI's (on the request line) are now converted to relative URI's to facilitate configMap lookups. 4. A Request-URI of "*" sets cherrypy.request.path to "global" (again for configMap). 5. Fixed a bug in config.getAll where the initial slash was miss…
Robert Brewer
1. Pulled dict_from_config_file out of config._load to make it reusable. 2. Made test.test.main() reusable by CP apps.
  1. Prev
  2. 1
  3. 2
  4. Next