Class s.r.b.t.ReportTableBuilder(AbstractTableBuilder):

Part of stoqlib.reporting.base.tables View In Hierarchy

Known subclasses: stoqlib.reporting.base.tables.ColumnTableBuilder

Report table builder
Method __init__ Creates a new AbstractTableBuilder object
Method set_highlight Set the table highlight type:
Method create_table Override the AbstractTableBuilder create_table method to allow
Method get_data Return all the table rows
Method update_style Apply the report table style.

Inherited from AbstractTableBuilder:

Method add_row Just add an extra row to the table
def __init__(self, data, style=None, header=None, table_line=TABLE_LINE, extra_row=None):
Creates a new AbstractTableBuilder object
ParametersdataThe table rows.
(type: list )
styleThe table style.
(type: TableStyle )
def set_highlight(self, highlight):
Set the table highlight type:
ParametershighlightThe highlight type
(type: One of HIGHLIGHT_ODD, HIGHLIGHT_NEVER, HIGHLIGHT_ALWAYS constants )
def create_table(self, *args, **kwargs):
Override the AbstractTableBuilder create_table method to allow pass extra parameters to Table class.
def get_data(self):
Return all the table rows
def update_style(self):
Apply the report table style.
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.