Source

CherryPy / config.py

Author Commit Message Labels Comments Date
Robert Brewer
Lots of mixedCase to lower_with_underscores.
Branches
cherrypy
Sylvain Hellegouarch
Fixed missing access log for global configuration
Branches
cherrypy
Robert Brewer
New server.socket_timeout config entry, thanks to Albert Visagie. See http://groups.google.com/group/cherrypy-devel/browse_frm/thread/ef761a8063cdc72b
Branches
cherrypy
Robert Brewer
Merged the reexec branch. Autoreload now uses exec instead of spawn, and therefore never runs more than one process at a time. There's a new test for autoreload in test_states.py. The state-management for the HTTP server is a mess, by the way. I only got test_states' KeyboardInterrupt test working by inlining the client threads. So wait() and interrupts, etc. only really work when there's a single master thread. This needs fixed.
Branches
cherrypy
Robert Brewer
Various speedups, the only notable one being that environments are now always flattened as soon as possible.
Branches
cherrypy
Robert Brewer
Cleanup of cherrypy and cherrypy.config namespaces. Changed 'log_config_options' to 'log_config'. Moved cherrypy.set_config to cherrypy.config.wrap.
Branches
cherrypy
Robert Brewer
Much Better Logging (see #256). Apps now have their own access and error loggers (whose config entries must be at "/"), and the global access logger has been removed (although you can make one manually if you like).
Branches
cherrypy
Robert Brewer
Made cherrypy.request and .response more sef-documenting by populating their attribute dicts outside a request.
Branches
cherrypy
Robert Brewer
Renamed httptools to "http" to reduce confusion with new cherrypy.tools. Moved non-Tool-related code from cptools to {{{lib/__init__}}}. Added docstrings.
Branches
cherrypy
Robert Brewer
Fix for #502 (log errors by default).
Branches
cherrypy
Robert Brewer
Bah. I knew I had config.merge in there for a reason.
Branches
cherrypy
Robert Brewer
Dispatch and config lookup now happens as early as possible, once per request (unless InternalRedirect is raised). Also moved the logging code out of {{{_cputil}}} and into {{{__init__}}}. xmlrpc still needs fixed so it doesn't re-write path_info.
Branches
cherrypy
Robert Brewer
Moved log_access to a config entry.
Branches
cherrypy
Robert Brewer
Root and config are now isolated per app: 1. object_path is now called path_info, and there's a new request.script_name attribute. This should equal the mount point of the current application. 2. cherrypy.root is gone, use cherrypy.request.app.root for now instead. Perhaps cherrypy.root will reappear and point to that. 3. cherrypy.tree.mount_points has been replaced with cherrypy.tree.apps, a dict of the form {script_name: Application(…
Branches
cherrypy
Robert Brewer
Moved the following config keys out of the "server." namespace (so that "server." may mean "httpserver"): * default_content_type * log_access_file * log_config_options * log_file * log_file_not_found * log_request_headers * log_to_screen * show_tracebacks * throw_errors
Branches
cherrypy
Robert Brewer
Fixed bug in request_config_section.
Branches
cherrypy
Robert Brewer
Objects on the CP tree may now possess a _cp_config attribute, which replaces _cp_tools, _cp_on_error, and _cp_filters. The Request object now keeps its own 'config' attribute (recalculated whenever object_path changes) which mixes _cp_config settings with settings in cherrypy.config. Every tool now has a merged_args method, which is used to pass arguments to the wrapped callable.
Branches
cherrypy
Robert Brewer
Lots of changes to error and log handling: 1. Removed RequestHandled and InternalError. 2. Error response is now overridable by replacing request.error_response. Tools should do this in setup(). 3. New request.log_access attribute. 4. Moved response.handleError to request.handle_error. 5. Logging of tracebacks and request headers are now tools. 6. New ErrorRedirect tool class. 7. Tools may now be anonymous (not necessary to be place…
Branches
cherrypy
Robert Brewer
test_core works again. 1. I'll look at replacing _cp_on_error with Tools some other day. 2. Moved the HookMap into tools.py. 3. New config.current_config function. 4. static.serve_file now sets body even if not modified_since.
Branches
cherrypy
Robert Brewer
Fluff.
Branches
cherrypy
Robert Brewer
Fixed xmlrpc tool and test. Plus: 1. 'path' arg is now required when calling dispatchers. 2. fixed default favicon declaration of staticfile. 3. missing import in lib/static. 4. fixed test_combinedfilters.py
Branches
cherrypy
Robert Brewer
CP 3 initial checkin. Global filters have been replaced by request.hooks. Lots of renaming and reorg of modules.
Branches
cherrypy
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.
Branches
cherrypy
Robert Brewer
Fix for #427 (Use RawConfigParser instead of ConfigParser).
Branches
cherrypy
Robert Brewer
server.thread_pool now defaults to 10.
Branches
cherrypy
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.
Branches
cherrypy
Robert Brewer
Removed redundant test for favicon.
Branches
cherrypy
Robert Brewer
Fix for #145. See the ticket for details about this fix.
Branches
cherrypy
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).
Branches
cherrypy
Remi Delon
More PEP 8 (including objectPath -> object_path); Changed virtualhostfilter to conform to PEP8; Fixes to sessionauthenticatefilter
Branches
cherrypy
  1. Prev
  2. 1
  3. 2
  4. 3
  5. Next