Package twisted :: Package web :: Module static
[show private | hide private]
[frames | no frames]

Module twisted.web.static

I deal with static resources.
Classes
ASISProcessor  
Data This is a static, in-memory resource.
DirectoryListing  
File File is a resource that represents a plain non-interpreted file (although it can look for an extension like .rpy or .cgi and hand the file to a processor for interpretation if you wish).
FileTransfer A class to represent the transfer of a file over the network.
Redirect  
Registry I am a Componentized object that will be made available to internal Twisted file-based dynamic web content such as .rpy and .epy scripts.

Function Summary
  addSlash(request)
  isDangerous(path)
  loadMimeTypes(mimetype_locations)
Multiple file locations containing mime-types can be passed as a list.

Variable Summary
NoResource dangerousPathError
_Feature nested_scopes

Function Details

loadMimeTypes(mimetype_locations=['/etc/mime.types'])

Multiple file locations containing mime-types can be passed as a list. The files will be sourced in that order, overriding mime-types from the files sourced beforehand, but only if a new entry explicitly overrides the current entry.

Variable Details

dangerousPathError

Type:
NoResource
Value:
<twisted.web.error.NoResource instance at 0x8478274>                   

nested_scopes

Type:
_Feature
Value:
_Feature((2, 1, 0, 'beta', 1), (2, 2, 0, 'alpha', 0), 16)              

Generated by Epydoc 1.1 on Fri Jun 27 03:46:08 2003 http://epydoc.sf.net