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 --+ | | | GavoRenderMixin --+ | GavoPage --+ | ResourceBasedPage --+ | ServiceBasedPage
the base class for renderers turning service-based info into character streams.
You will need to provide some way to give rend.Page nevow templates, either by supplying a docFactory or (usually preferably) mixing in CustomTemplateMixin -- or just override renderHTTP to make do without templates.
The class overrides nevow's child and render methods to allow the service to define render_X and data_X methods, too.
You can set an attribute checkedRenderer=False for renderers that are "generic" and do not need to be enumerated in the allowed attribute of the underlying service ("meta renderers").
You can set a class attribute openRenderer=True to make a renderer work even on restricted services (which may make sense for stuff like logout and maybe for metadata inspection).
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 |
Class Methods | |
Inherited from |
Class Variables | |
checkedRenderer = True
|
|
openRenderer = False
|
|
__implemented__ = <implementedBy gavo.web.grend.ServiceBasedPage>
|
|
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
|
calls the actual service. This will run in the current thread; you will ususally want to use runService from the main nevow event loop unless you know the service is quick or actually works asynchronously. |
takes raw data and returns a deferred firing the service result. This will process everything in a thread. |
runs the service, taking arguments from material preparsed by nevow formal. This is the entry point for the form renderer and its friends. |
returns a relative URL for this service using the renderer. This is ususally used like this: <a><n:attr name="href" n:data="serviceURL info" n:render="data">x</a>
|
returns a nevow render function named name. This overrides the method inherited from nevow's RenderFactory to add a lookup in the page's service service.
|
returns a nevow data function named name. In addition to nevow's action, this also looks methods up in the service.
|
|
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:
|
Special descriptor for class __provides__ The descriptor caches the implementedBy info, so that we can get declarations for objects without instance-specific interfaces a bit quicker.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu May 2 07:29:09 2019 | http://epydoc.sourceforge.net |