Source

CherryPy / _cptools.py

Author Commit Message Labels Comments Date
Robert Brewer avatarRobert Brewer
More-explicit error when illegally passing positional arguments to tool decorators. Also, a new tool test for multiple decorators with kwargs.
Branches
cherrypy
Robert Brewer avatarRobert 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.
Branches
cherrypy
Robert Brewer avatarRobert Brewer
Eliminated 'default_content_type' config entry by moving 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.
Branches
cherrypy
Default avatar Christian Wyglendowski
1. New "expires" tool for setting the "Expires" header.
Branches
cherrypy
Robert Brewer avatarRobert Brewer
Some tool optimizations.
Branches
cherrypy
Robert Brewer avatarRobert Brewer
Oops. Forgot to make default Tidy tools.
Branches
cherrypy
Robert Brewer avatarRobert Brewer
Fix for #512 (Cookie.expires should be optional).
Branches
cherrypy
Default avatar Christian Wyglendowski
Fix for #533. CP3 will behave correctly and return a Fault when an XML-RPC method is not found.
Branches
cherrypy
Robert Brewer avatarRobert Brewer
Expanded baseurl tool into a new proxy tool.
Branches
cherrypy
Robert Brewer avatarRobert Brewer
Renamed lib.encodings to lib.encoding to avoid shadowing the builtin.
Branches
cherrypy
Robert Brewer avatarRobert Brewer
Fake SessionTool attributes.
Branches
cherrypy
Robert Brewer avatarRobert Brewer
Heavily cleaned the namespace for Tool objects:
Branches
cherrypy
Robert Brewer avatarRobert Brewer
Removed the wrap method from Tool, since the enable method should meet all 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.
Branches
cherrypy
Robert Brewer avatarRobert 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.
Branches
cherrypy
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.