Source

CherryPy / cherrypy / __init__.py

Author Commit Message Labels Comments Date
Robert Brewer
Changing version to 3.0.0beta.
Tags
cherrypy-3.0.0beta
Robert Brewer
Changed every instance of 'conf' in the API to 'config'.
Robert Brewer
Moved _wsgi_callable to _cptree, and we now import _cpwsgi as cherrypy.wsgi. Also made {{{App.__call__}}} route to {{{App.wsgiapp}}} so the latter can be replaced by user code (i.e. it's not a special method).
Robert Brewer
Global log.screen now True.
Robert Brewer
Tweaks to docs, line lengths, tests, and number of serving lookups.
Robert Brewer
Logging cleanups: 1. Moved LogManager to new _cplogging module. 2. Apps now possess a 'log' attribute (a LogManager instance that includes both error and access) instead of separate error_log and access_log. 3. Fixed broken default error_log.
Robert Brewer
API and docstring cleanups: 1. Removed WrongConfigValue, decorate, decorate_all, and ExposeItems. 2. Moved cherrypy.logtime to cherrypy.log.time. 3. Reduced cherrypy.config.globalconf back to just cherrypy.config. 4. Moved _cpconfig.default_conf to config.defaults. .
Robert Brewer
Hook priority system: 1. All hook callbacks are now wrapped in an instance of _cprequest.Hook, where failsafe, priority, and kwargs are now stored. 2. Hooks are run in order of their "priority" attribute; lower numbers first. Default 50, range 0-100, floats OK. 2. cherrypy namespace: moved "serving" to "_serving", added cherrypy.Tool, changed "LogManager" to "_LogManager". 3. Set gzip.priority to 90.
Robert Brewer
More (final?) config overhaul work: 1. Removed cherrypy.config.get! Instead, you should directly inspect cherrypy.request, response, server, etc. Note that request.config.get still works fine. 2. a) cherrypy.log is now an instance of LogManager. It's still callable, but now is the object you inspect instead of calling config.get("log*"). b) cherrypy.log_access is now cherrypy.log.access. 3. All threads should now have access to d…
Robert Brewer
Fixes to some typos in [1274].
Robert Brewer
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_star…
Robert Brewer
Made all imports absolute "just in case" for Python 2.5.
Robert Brewer
WSGI improvements from Christian's cp3-wsgi-remix branch: 1. cherrypy.Application is now a WSGI callable. 2. cherrypy.tree may now be used as a WSGI dispatcher by simply calling it. This replaces the _cpwsgi.wsgiApp function. 3. You may now mount arbitrary WSGI apps using tree.graft(wsgi callable, script name). 4. If you set an Application object's script_name to None, it will try to pull script_name from cherrypy.request.wsgi_environ['SCRIPT_NAME'].…
Robert Brewer
Lots of mixedCase to lower_with_underscores.
Sylvain Hellegouarch
Fixed missing access log for global configuration
Robert Brewer
Revamped session module. Much better tests. Cleanup is now in a separate, cycling Timer thread (with an entry in on_stop_engine_list). Moved cherrypy.request._session to cherrypy.serving.session.
Robert Brewer
New deadlock monitor which sets Response.timed_out to True if Response.time < now - config.get("deadlock_timeout"). The request thread periodically checkes Response.timed_out and raises TimeoutError if it is True. Current checks are in HookMap.run, Request.respond, Body.__set__, and Response.finalize, more can be added later if needed.
Robert Brewer
Replaced request.remote_addr, remote_port, and remote_host with a single "remote" attribute, an instance of lib.http.Host, which has "ip", "port" and "name" attributes. Added a similar request.local attribute. Changed request() signature to (local, remote, scheme). This allows requests run behind multiple HTTP servers to know the address info for their particular connection.
Robert Brewer
Changed server.start to server.quickstart, and server.start_all to server.start.
Robert Brewer
Py 2.3 doesn't do multiline imports.
Robert Brewer
Cleanup of cherrypy and cherrypy.config namespaces. Changed 'log_config_options' to 'log_config'. Moved cherrypy.set_config to cherrypy.config.wrap.
Robert Brewer
Replaced http.HTTPDate with its clone rfc822.formatdate.
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.
  1. Prev
  2. 1
  3. 2
  4. 3
  5. Next