Source

CherryPy / test / test_tools.py

The branch 'cp3-wsgi-remix' does not exist.
Author Commit Message Labels Comments Date
Robert 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
New hooks namespace in config, for attaching arbitrary hooks to requests. See test_tools for an example.
Branches
cherrypy
Robert Brewer
Heavily cleaned the namespace for Tool objects:
Branches
cherrypy
Robert 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
More Python 2.3 safety and coments.
Branches
cherrypy
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.
Branches
cherrypy
Robert Brewer
New Tool.enable method (compile-time decorator to set the wrapped function's _cp_config).
Branches
cherrypy
Robert Brewer
Removed "filter" from lots of places, including renaming of tests.
Branches
cherrypy