File is a resource that represents a plain non-interpreted file.
It's constructor takes a file path.
Methods
|
|
|
|
__init__
|
__init__ (
self,
path,
defaultType="text/html",
allowExt=0,
)
Create a file with the given path.
|
|
createPickleChild
|
createPickleChild (
self,
name,
child,
)
|
|
getChild
|
getChild (
self,
path,
request,
)
See twisted.web.Resource.getChild.
Exceptions
|
|
"%s instance does not implement IResource, and there is no registered adapter." % p.__class__
|
|
|
getIndex
|
getIndex ( self, request )
|
|
listEntities
|
listEntities ( self )
|
|
listNames
|
listNames ( self )
|
|
redirect
|
redirect ( self, request )
|
|
render
|
render ( self, request )
You know what you doing.
|
|
upgradeToVersion1
|
upgradeToVersion1 ( self )
|
|
upgradeToVersion2
|
upgradeToVersion2 ( self )
|
|
upgradeToVersion3
|
upgradeToVersion3 ( self )
|
|