app/django/views/decorators/gzip.py
author Pawel Solyga <Pawel.Solyga@gmail.com>
Sun, 08 Mar 2009 21:59:57 +0000
changeset 1759 94b64c07f7ce
parent 54 03e267d67478
permissions -rw-r--r--
Revert r2376 since it's not needed as discussed in Issue 188. http://code.google.com/p/soc/issues/detail?id=188 Patch by: Pawel Solyga Reviewed by: to-be-reviewed

"Decorator for views that gzips pages if the client supports it."

from django.utils.decorators import decorator_from_middleware
from django.middleware.gzip import GZipMiddleware

gzip_page = decorator_from_middleware(GZipMiddleware)