diff options
| author | Robert Brewer <fumanchu@aminus.org> | 2006-04-25 07:18:05 +0000 |
|---|---|---|
| committer | Robert Brewer <fumanchu@aminus.org> | 2006-04-25 07:18:05 +0000 |
| commit | f6a5afa4d99fc9d0023cf3d2848dfc451315c326 (patch) | |
| tree | 2381424e5f28b8784f8431a415cac08e76dd1b24 /cherrypy/tutorial | |
| parent | 5be4d24a18be82eb992f396b82483f0850eb8b22 (diff) | |
| download | cherrypy-git-f6a5afa4d99fc9d0023cf3d2848dfc451315c326.tar.gz | |
Removed a bunch of instances of the word "filter".
Diffstat (limited to 'cherrypy/tutorial')
| -rw-r--r-- | cherrypy/tutorial/tut07_sessions.py | 2 | ||||
| -rw-r--r-- | cherrypy/tutorial/tut09_files.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cherrypy/tutorial/tut07_sessions.py b/cherrypy/tutorial/tut07_sessions.py index 9838d55b..0eef8b1b 100644 --- a/cherrypy/tutorial/tut07_sessions.py +++ b/cherrypy/tutorial/tut07_sessions.py @@ -28,7 +28,7 @@ class HitCounter: cherrypy.root = HitCounter() -cherrypy.config.update({'session_filter.on': True}) +cherrypy.config.update({'tools.sessions.on': True}) if __name__ == '__main__': cherrypy.config.update(file = 'tutorial.conf') diff --git a/cherrypy/tutorial/tut09_files.py b/cherrypy/tutorial/tut09_files.py index 64be177b..d241ce4f 100644 --- a/cherrypy/tutorial/tut09_files.py +++ b/cherrypy/tutorial/tut09_files.py @@ -32,7 +32,7 @@ serve_file(path, contentType=None, disposition=None, name=None) Set "name" to the filename that you expect clients to use when they save your file. Note that the "name" argument is ignored if you don't also provide a "disposition" (usually "attachement"). You can manually set -"contentType", but be aware that if you also use the EncodingFilter, it +"contentType", but be aware that if you also use the encoding tool, it may choke if the file extension is not recognized as belonging to a known Content-Type. Setting the contentType to "application/x-download" works in most cases, and should prompt the user with an Open/Save dialog in |
