summaryrefslogtreecommitdiff
path: root/cherrypy/lib/encoding.py
diff options
context:
space:
mode:
authorRobert Brewer <fumanchu@aminus.org>2006-08-26 06:26:58 +0000
committerRobert Brewer <fumanchu@aminus.org>2006-08-26 06:26:58 +0000
commit025841a3d490174482eaa8d6677908383e40fccc (patch)
treeaff0456872eae4f1e471db4417efbcbef166248a /cherrypy/lib/encoding.py
parenta8bb030365d0a7915422e47fa042c5a13cdb3fd0 (diff)
downloadcherrypy-git-025841a3d490174482eaa8d6677908383e40fccc.tar.gz
Hook priority system:
1. All hook callbacks are now wrapped in an instance of _cprequest.Hook, where failsafe, priority, and kwargs are now stored. 2. Hooks are run in order of their "priority" attribute; lower numbers first. Default 50, range 0-100, floats OK. 2. cherrypy namespace: moved "serving" to "_serving", added cherrypy.Tool, changed "LogManager" to "_LogManager". 3. Set gzip.priority to 90.
Diffstat (limited to 'cherrypy/lib/encoding.py')
-rw-r--r--cherrypy/lib/encoding.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cherrypy/lib/encoding.py b/cherrypy/lib/encoding.py
index 2a6a8846..8db65996 100644
--- a/cherrypy/lib/encoding.py
+++ b/cherrypy/lib/encoding.py
@@ -216,4 +216,4 @@ def gzip(compress_level=9, mime_types=['text/html', 'text/plain']):
zipit()
return
cherrypy.HTTPError(406, "identity, gzip").set_response()
-
+gzip.priority = 90