Package zephir :: Package monitor :: Package agentmanager :: Module data :: Class TableData
[hide private]
[frames] | no frames]

Class TableData

source code

AgentDataChunk --+
                 |
                TableData

Table de valeurs

Instance Methods [hide private]
 
__init__(self, columns_format, table_data=None) source code
Method Details [hide private]

__init__(self, columns_format, table_data=None)
(Constructor)

source code 
Parameters:
  • table_data - a list of {key:value} dicts (one dict per row, one key per column)
  • columns_format - a list of (key, title, attributes, formatter) tuples, one for each column in table_data, where:
    • attributes is a {attr:value} dict which describes HTML attributes of the corresponding table cell
    • formatter is a function returning a string to display the value in the cell; you will probably have to define a real function instead of using lambda.