Package elisa :: Package extern :: Module db_row :: Class DBRow
[hide private]
[frames] | no frames]

Class DBRow

source code

A single row in a result set with a dictionary-style and list-style interface

Instance Methods [hide private]
 
__init__(self, row, fields)
Called by ResultSet function.
source code
 
__repr__(self) source code
 
__str__(self)
Returns a string representation
source code
 
__getattr__(self, attr) source code
 
__getitem__(self, key)
Returns the value of the named column
source code
 
__setitem__(self, key, value)
Not used in this implementation
source code
 
__getslice__(self, i, j)
Returns the value of the numbered column
source code
 
__setslice__(self, i, j, list)
Not used in this implementation
source code
 
keys(self)
Returns the field names
source code
 
keymappings(self)
Returns a dictionary of the keys and their indices in the row
source code
 
has_key(self, key)
Returns whether the given key is valid
source code
 
__len__(self)
Returns how many columns are in this row
source code
 
__nonzero__(self) source code
 
__eq__(self, other) source code
Method Details [hide private]

__init__(self, row, fields)
(Constructor)

source code 
Called by ResultSet function. Don't call directly