Home | Trees | Indices | Help |
|
---|
|
object --+ | grend.HTMLResultRenderMixin --+ | object --+ | | | grend.CustomTemplateMixin --+ | 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 --+ | QPRenderer
The Query Path renderer extracts a query argument from the query path.
Basically, whatever segments are left after the path to the renderer are taken and fed into the service. The service must cooperate by setting a queryField property which is the key the parameter is assigned to.
QPRenderers cannot do forms, of course, but they can nicely share a service with the form renderer.
To adjust the results' appreance, you can override resultline (for when there's just one result row) and resulttable (for when there is more than one result row) templates.
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 Inherited from Inherited from |
Class Methods | |||
|
|||
Inherited from |
Class Variables | |
name =
hash(x) |
|
queryValue = None hash(x) |
|
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
Properties | |
Inherited from Inherited from |
Method Details |
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 |