| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
base.structure.StructureBase --+
|
object --+ |
| |
base.common.Parser --+
|
base.structure.ParseableStructure --+
|
base.structure.Structure --+
|
object --+ |
| |
base.meta.MetaMixin --+
|
rscdef.column.ColumnBase --+
|
rscdef.column.Column --+
|
OutputField
A column for defining the output of a service.
It adds some attributes useful for rendering results, plus functionality specific to certain cores.
The optional formatter overrides the standard formatting code in HTML (which is based on units, ucds, and displayHints). You receive the item from the database as data and must return a string or nevow stan. In addition to the standard `Functions available for row makers`_ you have queryMeta and nevow's tags in T.
Here's an example for generating a link to another service using this facility:
<outputField name="more"
select="array[centerAlpha,centerDelta] as more" tablehead="More"
description="More exposures near the center of this plate">
<formatter><![CDATA[
return T.a(href=base.makeSitePath("/lswscans/res/positions/q/form?"
"POS=%s,%s&SIZE=1&INTERSECT=OVERLAPS&cutoutSize=0.5"
"&__nevow_form__=genForm"%tuple(data)
))["More"] ]]>
</formatter>
</outputField>
Within the code, in addition do data, you see rd and queryMeta.
| Nested Classes | |
|
Inherited from |
| Class Methods | |||
|
|||
|
Inherited from |
|||
| Class Variables | |
name_ = a sentinel for all kinds of undefined values. |
|
attrSeq =
|
|
managedAttrs =
|
|
|
Inherited from Inherited from Inherited from |
|
| Properties | |
|
Inherited from |
| Method Details |
repr(x)
|
|
|
|
|
|
| Class Variable Details |
attrSeq
|
managedAttrs
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu May 2 07:29:09 2019 | http://epydoc.sourceforge.net |