| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
tools.caching.delay/maxobjects/maxsize). Trunk (3.1) now forces most caching config to apply site-wide. Also changed MemoryCache.key to MemoryCache.key().
|
| |
|
| |
|
|
|
|
| |
in favor of response.time.
|
| |
|
|
|
|
| |
request.url().
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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 default Request and Response objects, not just the main thread.
4. deadlock.timeout is now request.timeout.
5. Renamed config.py to _cpconfig.py; cherrypy.config is now an instance of _cpconfig.Config.
I still need to decide what to do about log_config (removed for now).
|
| |
|
|
|
|
|
|
|
| |
1. Changed Request.run from request_line arg to deconstructed args: method, path, query_string, and protocol.
2. Moved HTTP protocol checking from _cprequest to _cpwsgiserver. What was cherrypy.response.version is now cherrypy.request.protocol (tuple form of SERVER_PROTOCOL). request.version and response.version attributes removed. _cpwsgiserver now writes out server.protocol, not SERVER_PROTOCOL (which is a misnomer, it really should have been REQUEST_PROTOCOL).
3. path unquoting was also moved from _cprequest to _cpwsgiserver (like most other WSGI servers).
4. New test for absoluteURI in the Request-Line.
|
|
|
|
| |
tools.response_headers to on_start_resource. If anyone still needs response headers to be set late, they can call tools.response_headers later, either in code or via a hook declared in config.
|
| |
|
| |
|
|
|
|
|
|
|
| |
1. Now takes 'secs' arg instead of 'e_time'.
2. The 'force' arg defaults to False now.
3. Set 'force' to True to imply ignore_indicators.
4. New cherrypy.reponse.time attribute: the time.time() which is used for the 'Date' response header.
|
|
|
|
| |
2. Tests for the expires tool.
|
| |
|
| |
|
|
|
|
| |
from using header_list instead of headers.
|
|
|
|
| |
solves some corner cases where a queued object with a long delay would prevent queued objects of shorter delays from expiring on time. It also removes the (variable-period) sleep call buried in Queue, and now uses a single 0.1 sec poll rate.
|
|
|
|
| |
lastModified.
|
| |
|
|
|
|
|
|
|
| |
1. Privatized "name", "point", "merged_args" and "setup".
2. Renamed Tool.enable to Tool.__call__.
3. Set the docstring of each Tool instance to the docstring of the tool's callable. Combined with the above, this means calltips should pick up the calltip of the callable.
4. Tools now copy the param names of self.callable to self.attributes. This allows users to "import tools" and then get config entry auto-completion in aware editors.
|
| |
|
|
|
|
| |
cases better. Also fixed a bug where request.hooks was not being reinitialized on internalredirect. Also added code to guard against recursive internalredirects. Finally, fixed a couple of dict iterations that were missing iteritems.
|
| |
|
| |
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
1. Replaced request.execute_main with request.dispatch. Setting request.dispatch to None means no dispatch call.
2. Better xmlrpc tool as a result.
3. Tools now know their own names.
4. Tools now mix config into args given to wrap() and handler().
|
| |
|
| |
|
|
Lots of renaming and reorg of modules.
|