Class s.r.b.t.ObjectTableBuilder(ColumnTableBuilder):

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

Object table builder
Method __init__ Creates a new ObjectTableBuilder object
Method _get_header Return the column names representing the table header.
Method get_row_data Create the row list, formatting its column values if needed.
Method _expand_cols This method is used to apply column expansion based on its expand

Inherited from ColumnTableBuilder:

Method create_table Override ReportTableBuilder create_table method to allow specify
Method build_data Create the table rows list.
Method add_row Just add an extra row to the table
Method update_style Apply the column table style.

Inherited from ReportTableBuilder (via ColumnTableBuilder):

Method set_highlight Set the table highlight type:
Method get_data Return all the table rows
def __init__(self, objs, columns, style=None, width=None, progress_handler=None, table_line=TABLE_LINE, extra_row=None, summary_row=None):
Creates a new ObjectTableBuilder object
ParametersobjsA instance list, where each instance is a table row. (type: list. )
columnsA list of ObjectTableColumn, representing the table columns. (type: list )
styleThe table style. (type: TableStyle )
widthThe table width. (type: int )
table_lineDefine the type of the line that is inserted between the table rows. (type: One of TABLE_LINE or TABLE_LINE_BLANK constants. )
extra_rowAn object with data to be inserted right after the table. This data is included on the report as a normal data table after this object table. (type: list )
summary_rowA list of strings to be inserted after the table and that means the sum of one or more columns. (type: list )
def _get_header(self):
Return the column names representing the table header.
def get_row_data(self, value):
Create the row list, formatting its column values if needed.
def _expand_cols(self, cols, width):
This method is used to apply column expansion based on its expand factors.
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.