app/django/views/decorators/gzip.py
author Sverre Rabbelier <srabbelier@gmail.com>
Fri, 13 Mar 2009 23:12:40 +0000
changeset 1845 2651cb3979db
parent 54 03e267d67478
permissions -rw-r--r--
Fixed a thinko-fix in toDict The pick() view was broken because of this. Patch by: Sverre Rabbelier

"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)