App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Static Public Attributes | List of all members
google.appengine.ext.zipserve.ZipHandler Class Reference
Inheritance diagram for google.appengine.ext.zipserve.ZipHandler:
google.appengine.ext.webapp._webapp25.RequestHandler

Public Member Functions

def get
 
def ServeFromZipFile
 
def SetCachingHeaders
 
- Public Member Functions inherited from google.appengine.ext.webapp._webapp25.RequestHandler
def initialize
 
def get
 
def post
 
def head
 
def options
 
def put
 
def delete
 
def trace
 
def error
 
def redirect
 
def handle_exception
 
def new_factory
 
def get_url
 

Static Public Attributes

dictionary zipfile_cache = {}
 
int MAX_AGE = 600
 
 PUBLIC = True
 

Additional Inherited Members

- Public Attributes inherited from google.appengine.ext.webapp._webapp25.RequestHandler
 request
 
 response
 

Detailed Description

Request handler serving static files from zipfiles.

Member Function Documentation

def google.appengine.ext.zipserve.ZipHandler.get (   self,
  prefix,
  name 
)
GET request handler.

Typically the arguments are passed from the matching groups in the
URL pattern passed to WSGIApplication().

Args:
  prefix: The zipfilename without the .zip suffix.
  name: The name within the zipfile.
def google.appengine.ext.zipserve.ZipHandler.ServeFromZipFile (   self,
  zipfilename,
  name 
)
Helper for the GET request handler.

This serves the contents of file 'name' from zipfile
'zipfilename', logging a message and returning a 404 response if
either the zipfile cannot be opened or the named file cannot be
read from it.

Args:
  zipfilename: The name of the zipfile.
  name: The name within the zipfile.
def google.appengine.ext.zipserve.ZipHandler.SetCachingHeaders (   self)
Helper to set the caching headers.

Override this to customize the headers beyond setting MAX_AGE.

The documentation for this class was generated from the following file: