7.4.1 Standard Objects

visible
If this boolean value is set to False, the report will not be displayed in the navigation bar of the gui. It will also not be generated.

data
Specifies the data that should be displayed by the report. This can be any sequence or iterator of any object.

headers
Specifies the header of the report, if this attribute is not set, the report tries to guess the header names. headers must be a list of strings.

make_report( data)
This method can be overwritten to change the displayed data rows. data is equal to the data attribute. The method has to yield for everty row a sequence of row data. The items in the sequence are the cells of the row. For an example how to write a make_report method, see (2.1).

prepare_data( data)
This method can be overwritten to change the data before make_report is called. The data is the same as the data attribute. The method has to return the sequenced data.

modify_row( row)
This method can be overwritten to change the apperance of the single cells of a row. The argument row is a list of CellObject instances. The method as to return the modified row list.

Note: The data argument of make_report is equal but not the same as the data attribute. If you wondered how the faces gui is able to udpate the editor view, when you click on an report cell: The magic lies in the difference between the data argument and the data attribute. Before calling make_report faces instruments the data with code information.