app/django/views/decorators/gzip.py
author Lennard de Rijk <ljvderijk@gmail.com>
Tue, 30 Jun 2009 18:02:10 +0200
changeset 2467 f46cff8d676b
parent 54 03e267d67478
permissions -rw-r--r--
Solved some merging problems and use the getRecordLogic where needed.

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