gavo.web.htmltable module¶
A renderer for Data to HTML/stan
- class gavo.web.htmltable.HTMLDataRenderer(table, queryMeta)[source]¶
Bases:
NevowcElement
A base class for rendering tables and table lines.
Both HTMLTableFragment (for complete tables) and HTMLKeyValueFragment (for single rows) inherit from this.
- class gavo.web.htmltable.HTMLKeyValueFragment(table, queryMeta)[source]¶
Bases:
HTMLDataRenderer
,HeadCellsMixin
A nevow renderer for single-row result tables.
- data_firstrow(request, tag)[source]¶
returns a sequence for (colDef, serialised value) for the first row of the result table.
- property loader¶
- class gavo.web.htmltable.HTMLTableFragment(table, queryMeta)[source]¶
Bases:
HTMLDataRenderer
A nevow renderer for result tables.
- rowsPerDivision = 25¶
- class gavo.web.htmltable.HeadCells(serManager)[source]¶
Bases:
Element
,HeadCellsMixin
- class gavo.web.htmltable.HeadCellsMixin[source]¶
Bases:
CommonRenderers
A mixin providing renders for table headings.
The class mixing in must give the SerManager used in a serManager attribute.