app/django/views/decorators/gzip.py
author Pawel Solyga <Pawel.Solyga@gmail.com>
Mon, 01 Jun 2009 20:31:38 +0200
changeset 2373 05ab9393303d
parent 54 03e267d67478
permissions -rw-r--r--
Add google-visualization-python project to Melange repository. This python module will be used with our Statistics module to leverage Google Visualization API and python as a data source.

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