Class s.r.b.t.ObjectTableColumn(TableColumn):

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

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

No class docstring
Method __init__ Creates a new ObjectTableColumn object
Method get_string_data Returns the column value. The value can be returned through
Method __repr__ Undocumented

Inherited from TableColumn:

Method get_translated_alignment Undocumented
Method update_style Apply the column style.
def __init__(self, name, data_source, *args, expand_factor=0, align=LEFT, truncate=False, width=None, format_string=None, format_func=None, expand=False, virtual=False, style=None, **kwargs):
Creates a new ObjectTableColumn object
ParametersnameThe column name
(type: str )
data_sourceThe attribute name where get the column value from. This can be a callable object too.
(type: object )
expand_factorThe column expand factor.
(type: float )
alignThe table alignment. One of LEFT, RIGHT, CENTER constants defined on stoqlib reporting flowables module.
(type: One of LEFT, RIGHT or CENTER )
truncateIf True, the column value will be truncate if its size was greater than the column width.
(type: bool )
def get_string_data(self, value):
Returns the column value. The value can be returned through accessors defined by the user.
def __repr__(self):
Undocumented
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.