app/django/views/decorators/gzip.py
author Pawel Solyga <Pawel.Solyga@gmail.com>
Wed, 04 Mar 2009 21:15:01 +0000
changeset 1655 ed1df29f4fd9
parent 54 03e267d67478
permissions -rw-r--r--
Rename too short variable name in soc.logic.mail_dispatcher 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)