app/django/views/decorators/gzip.py
author Sverre Rabbelier <srabbelier@gmail.com>
Tue, 02 Dec 2008 22:03:46 +0000
changeset 651 ef6e22d463cb
parent 54 03e267d67478
permissions -rw-r--r--
Remove the logic parameter from getListContent Now that params always has a 'logic' attribute, we can use that instead of requiring that it is passed as argument. Patch by: Sverre Rabbelier

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