app/django/views/decorators/gzip.py
author Pawel Solyga <Pawel.Solyga@gmail.com>
Wed, 04 Mar 2009 21:16:26 +0000 (2009-03-04)
changeset 1657 77832a2171af
parent 54 03e267d67478
permissions -rw-r--r--
Fix too long lines and indentions in soc.models.student_proposal module. 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)