Source

CherryPy / cherrypy / __init__.py

Author Commit Message Labels Comments Date
Christian Wyglendowski
Updated version numbers in preparation for 3.0RC1 release.
Tags
cherrypy-3.0.0RC1
Robert Brewer
Better support for custom toolboxes and namespaces: 1. Each Toolbox is now its own config namespace handler, and self-registers as such. 2. The global, app, and request contexts now each allow (but do not force) config namespace handlers to be PEP 343-style context managers, with {{{__enter__}}} and {{{__exit__}}} methods. 3. Each Toolbox and Tool has a new "namespace" attribute. Each Tool automatically inherits the namespace attribute of its To…
Robert Brewer
Added {{{__delitem__}}} to ThreadLocalProxy to support {{{del cherrypy.session[key]}}}.
Sylvain Hellegouarch
dict can't be updated with None value.
Robert Brewer
Quickstart now calls config.update. See http://groups.google.com/group/cherrypy-users/browse_thread/thread/e1e7d4088dcddeac.
Robert Brewer
Applied suggested patch to #584 (Need a way to get the url submitted to a InternalRedirect). See the ticket for details.
Robert Brewer
Explicit import of _cprequest in {{{cherrypy.__init__}}}. Not sure why my install doesn't need it, but others have said theirs does.
Christian Wyglendowski
Version number changes in preparation for the CP 3.0.0beta2 release.
Tags
cherrypy-3.0.0beta2
Robert Brewer
Fix for #562 (Redirect for slash doesn't use tools.proxy.base). Moved slash checking into new tools.trailing_slash(missing=True, extra=False), which is on by default. The core now sets request.is_index to allow such tools to work. In addition, if that tool is off, mismatched slashes will be corrected in cherrypy.url.
Robert Brewer
Improvements to cherrypy.url: 1. Bugfix for relative input ("/leaf" + "new"}}} was generating "/leaf/new", now generates "/new"). 2. Support for single and double dots. 3. New 'relative' arg for producing relative output.
Robert Brewer
Removed app.guess_abs_path. Use cherrypy.url(script_name=app.script_name) instead.
Robert Brewer
Collapsed request.url and tree.url into a single cherrypy.url function.
Robert Brewer
Rather than default to an error log file, we'll just default to screen. This circumvents any permission problems in the cherrypy install directory.
Joseph Tate
Make a CherryPyException, from which all exceptions inherit, and also is available from "import cherrypy".
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.
  1. Prev
  2. 1
  3. 2
  4. 3
  5. 4
  6. Next