Package schrodinger :: Package infra :: Module table :: Class TableRow
[hide private]
[frames] | no frames]

Class TableRow

This class represents a table row--what you get by indexing a Table.

Note that a TableRow should not outlive its corresponding Table.

Instance Methods [hide private]
 
__init__(self, table, row)
Construct a Table Row for the given table handle and row number
 
__repr__(self)
Return representation suitable for use as a Python expression
 
__getitem__(self, prop)
Return Table Row cell value or None if the cell doesn't have a value
 
__setitem__(self, prop, value)
Set Table Row cell value
 
_setValue(self, column, data_type, value)
Private function to set a cell value
Method Details [hide private]

__getitem__(self, prop)
(Indexing operator)

 

Return Table Row cell value or None if the cell doesn't have a value

prop is the name of the property (column). This can either be a data name or a user name.

prop can also be the index of a column

__setitem__(self, prop, value)
(Index assignment operator)

 

Set Table Row cell value

prop is the name of the property (column), i.e. the key. This can either be the data name or the user name

prop can also be the index of a column