app/django/views/decorators/gzip.py
author Lennard de Rijk <ljvderijk@gmail.com>
Tue, 14 Jul 2009 18:36:16 +0200
changeset 2648 c6d1c9ccef4a
parent 54 03e267d67478
permissions -rw-r--r--
Added button to the GradingRecords overview to send mail when updating projects. Note that this will mail all the projects for which a record is available.

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