diff options
author | Robert Brewer <fumanchu@aminus.org> | 2006-06-13 06:04:32 +0000 |
---|---|---|
committer | Robert Brewer <fumanchu@aminus.org> | 2006-06-13 06:04:32 +0000 |
commit | 0fb629dd0e53b86b337bfca63c3f0008f8f402a7 (patch) | |
tree | 5f7926f44af5c77827e1d1c700aae4545eb1df6c /cherrypy/lib/caching.py | |
parent | a24dcf83c54b99812dd7bb87a679f0391e64d25a (diff) | |
download | cherrypy-git-0fb629dd0e53b86b337bfca63c3f0008f8f402a7.tar.gz |
Heavily cleaned the namespace for Tool objects:
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.
Diffstat (limited to 'cherrypy/lib/caching.py')
-rw-r--r-- | cherrypy/lib/caching.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cherrypy/lib/caching.py b/cherrypy/lib/caching.py index 05142662..c1187634 100644 --- a/cherrypy/lib/caching.py +++ b/cherrypy/lib/caching.py @@ -159,7 +159,7 @@ def enable(**kwargs): return f return wrapper -def setup(): +def _setup(): """Hook caching into cherrypy.request using the given conf.""" conf = cherrypy.request.toolmap.get("caching", {}) if not getattr(cherrypy, "_cache", None): |