Package flumotion :: Package component :: Package plugs :: Package cortado :: Module cortado :: Class CortadoDirectoryResource
[hide private]

Class CortadoDirectoryResource

source code

twisted.web.resource.Resource --+
                                |
                               CortadoDirectoryResource

I generate the directory used to serve a cortado applet
It contains::
- a html file, usually called index.html.
- cortado.jar - cortado java applet

Nested Classes [hide private]

Inherited from twisted.web.resource.Resource: entityType

Instance Methods [hide private]
 
__init__(self, mount_point, properties, filename)
Initialize.
source code
 
_addChildren(self) source code
 
_get_template_filename(self) source code
 
_get_index_content(self) source code
 
getChildWithDefault(self, pathEl, request)
Retrieve a static or dynamically generated child resource from me.
source code

Inherited from twisted.web.resource.Resource: __providedBy__, delEntity, getChild, getChildForRequest, getDynamicEntity, getStaticEntity, listDynamicEntities, listDynamicNames, listEntities, listNames, listStaticEntities, listStaticNames, putChild, reallyPutEntity, render, render_HEAD

Class Variables [hide private]

Inherited from twisted.web.resource.Resource: __implemented__, __provides__, isLeaf, server

Method Details [hide private]

__init__(self, mount_point, properties, filename)
(Constructor)

source code 

Initialize.

Overrides: twisted.web.resource.Resource.__init__
(inherited documentation)

getChildWithDefault(self, pathEl, request)

source code 

Retrieve a static or dynamically generated child resource from me.

First checks if a resource was added manually by putChild, and then call getChild to check for dynamic resources. Only override if you want to affect behaviour of all child lookups, rather than just dynamic ones.

This will check to see if I have a pre-registered child resource of the given name, and call getChild if I do not.

Overrides: twisted.web.resource.Resource.getChildWithDefault
(inherited documentation)