app/django/views/decorators/gzip.py
author Sverre Rabbelier <srabbelier@gmail.com>
Sat, 28 Feb 2009 00:10:07 +0000
changeset 1548 15caebd3304d
parent 54 03e267d67478
permissions -rw-r--r--
Denormalize accounts before trying to send e-mail Otherwise accounts that are in the auth domain are not a valid e-mail address. 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)