app/django/views/decorators/gzip.py
author David Anderson <david.jc.anderson@gmail.com>
Sat, 14 Mar 2009 03:49:16 +0000
changeset 1849 f8728d5e2e07
parent 54 03e267d67478
permissions -rw-r--r--
Factor out the Subversion wrapper to a separate module.

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