Source

CherryPy / cherrypy / __init__.py

Author Commit Message Labels Comments Date
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).
Robert Brewer
Fix for #256 (log file needs a lock). CherryPy now uses the stdlib's logging module. See the ticket for more details.
Robert Brewer
Quick and dirty trap of log file errors.
Robert Brewer
Made cherrypy.request and .response more sef-documenting by populating their attribute dicts outside a request.
Robert Brewer
Removed inspect import in cherrypy.decorate, decorateAll.
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.
Robert Brewer
Got rid of _cperror.Error base class, and "from _cperror import *" in top level.
Robert Brewer
Moved coverage out of the core.
Robert Brewer
Separated tool construction from default toolbox by renaming cherrypy.tools module to _cptools, and binding cherrypy tools to a new _cptools.default_toolbox object. Also cleaned up the top-level cherrypy namespace quite a bit, and moved some user code out of lib.cptools.
Robert Brewer
New cherrypy.quickstart function.
Robert Brewer
New Tool.enable method (compile-time decorator to set the wrapped function's _cp_config).
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.
Robert Brewer
Renamed _cp_log_message to "_cputil.log", and moved its customization from a special attribute to a config entry ('log_function'). Since that was the last special attribute, removed _cputil.get_special_attribute entirely.
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(…
Robert Brewer
New cherrypy.set_config(**kwargs) decorator for setting _cp_config on a method. Also better errors on lookup of request attrs when not in a request.
Robert Brewer
Separated cherrypy.server (HTTP) from cherrypy.engine (app): 1. Most CP apps must now make both a call to cherrypy.server.start(server=None) and a call to cherrypy.engine.start(blocking=True). 2. The on_start_server_list and on_stop_server_list are now on_start_engine_list and on_stop_engine_list. 3. "start_with_callback" is now an attribute of Engine. So is "request". 4. Server.start now takes a single "server" arg, which can be a server instance, a st…
Robert Brewer
Fix for #426 (cherrypy.expose alias problems with dots).
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…
Robert Brewer
Removed old_name option from get_special_attribute.
Robert Brewer
Fixed session module for the new tool API.
Robert Brewer
CP 3 initial checkin. Global filters have been replaced by request.hooks. Lots of renaming and reorg of modules.
Remi Delon
Preparing for 2.2.0-final release
Remi Delon
Preparing for 2.2.0rc1 release
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.
Remi Delon
Reverting changeset [926]: Removing "is_app_root" proof of concept since we decided to go with the tree.mount() route for now.
Remi Delon
Changing "2.2.0-beta" into "2.2.0beta"
Remi Delon
Proof of concept idea to handle multiple apps: adding a cherrypy.url() function and a is_app_root class attribute for apps
Robert Brewer
Fix for #145. See the ticket for details about this fix.
Robert Brewer
New signature for cherrypy.log.
Remi Delon
Big change: camelCase to lower_with_underscore names (still need to update the book)
  1. Prev
  2. 1
  3. 2
  4. 3
  5. 4
  6. 5
  7. 6
  8. Next