Home | Trees | Indices | Help |
|
---|
|
object --+ | nevow.rend.DataFactory --+ | object --+ | | | nevow.rend.RenderFactory --+ | object --+ | | | nevow.rend.MacroFactory --+ | object --+ | | | nevow.rend.ConfigurableMixin --+ | nevow.rend.Fragment --+ | nevow.rend.ConfigurableFactory --+ | nevow.rend.FreeformChildMixin --+ | | | nevow.rend.ChildLookupMixin --+ | nevow.rend.Page --+ | object --+ | | | common.CommonRenderers --+ | | | grend.GavoRenderMixin --+ | grend.GavoPage --+ | grend.ResourceBasedPage --+ | grend.ServiceBasedPage --+ | StaticRenderer
A renderer that just hands through files.
The standard operation here is to set a staticData property pointing to a resdir-relative directory used to serve files for. Indices for directories are created.
You can define a root resource by giving an indexFile property on the service. Note in particular that you can use an index file with an extension of shtml. This lets you use nevow templates, but since metadata will be taken from the global context, that's probably not terribly useful. You are probably looking for the fixed renderer if you find yourself needing this.
Instance Methods | |||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
Class Methods | |||
|
|||
|
|||
Inherited from |
Class Variables | |
name =
hash(x) |
|
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
Properties | |
Inherited from |
Method Details |
x.__init__(...) initializes x; see help(type(x)) for signature
|
|
should return true if the content rendered will only change when the associated RD changes. request is a nevow request object. web.root.ArchiveService already makes sure that you only see GET request without arguments and without a user, so you do not need to check this.
|
|
Locate a child page of this one. ctx is a nevow.context.PageContext representing the parent Page, and segments is a tuple of each element in the URI. An tuple (page, segments) should be returned, where page is an instance of nevow.rend.Page and segments a tuple representing the remaining segments of the URI. If the child is not found, return NotFound instead. locateChild is designed to be easily overridden to perform fancy lookup tricks. However, the default locateChild is useful, and looks for children in three places, in this order:
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu May 2 07:29:09 2019 | http://epydoc.sourceforge.net |