Package Products :: Package ZenWidgets :: Module FileGzipper' |
[hide private]
[frames] | no frames]

# Module FileGzipper'

source code

FileGzipper

A monkey patch that enables gzip compression on static files

Functions | [hide private]
index_html(self, REQUEST, RESPONSE) The default view of the contents of a File or Image. | source code
__call__(self, __instance, *args, **keywords) | source code
GET(self) | source code

Variables | [hide private]
| oldget = `FileResource.GET`

Function Details | [hide private]

### index_html(self, REQUEST, RESPONSE) | source code
The default view of the contents of a File or Image. Returns the contents of the file or image. Also, sets the Content-Type HTTP header to the objects content type.

### __call__(self, __instance, *args, **keywords) (Call operator) | source code
Decorators: `@monkeypatch(ViewPageTemplateFile)`

### GET(self) | source code
Decorators: `@monkeypatch(FileResource)`