| Home | Trees | Index | Help |
|
|---|
| Package picalo :: Package base :: Module Record :: Class Record |
|
>>> rec1 = mytable3[0] >>> print rec1[1] 'Bart' >>> print rec1['Name'] 'Bart'
| Method Summary | |
|---|---|
Called by Table's append or insert method. | |
Compares two records. | |
Internal method to retrieve the value of a cell. | |
| returns |
Retrieves the value of a field in the record. |
| returns |
Retrieves the value of a field in the record. |
Returns an iterator to this record (using the table's column order) | |
Returns the length of this record | |
Returns whether two records are not equal to another | |
For debugging | |
Sets the table page on which this record will live. | |
Sets the value of a field in the record. | |
Sets the value of a field in the record. | |
For debugging | |
Returns whether the record has the given column name | |
| Method Details |
|---|
__init__(self,
page,
initial_data=None)
Called by Table's append or insert method. Do not create Records
directly. page => The Picalo memory page this record is part of.
initial_data => An initial list (MUST be a Python list) of data
|
__eq__(self,
other)
Compares two records. Records can be compared with other records,
dictionaries, and lists.
|
__get_value__(self, col, expression_backtrack)Internal method to retrieve the value of a cell. col => The column name or index expression_backtrack => A list of expression ids that have been run so far, to catch circular formulas |
__getattr__(self,
col)
Retrieves the value of a field in the record. This method allows
record.colname type of access to values.
|
__getitem__(self,
col)
Retrieves the value of a field in the record. This method allows
record['colname'] type of access to values.
|
__iter__(self)Returns an iterator to this record (using the table's column order) |
__len__(self)
Returns the length of this record
|
__ne__(self, other)Returns whether two records are not equal to another |
__repr__(self)
For debugging
|
__set_page__(self, page)Sets the table page on which this record will live. This is changed whenever the record is added to the table for the first time or when the page it is currently on gets split into two pages. |
__setattr__(self, col, value)Sets the value of a field in the record.
|
__setitem__(self,
col,
value)
Sets the value of a field in the record.
|
__str__(self)
For debugging
|
has_key(self, key)Returns whether the record has the given column name |
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Mon Aug 20 05:38:17 2007 | http://epydoc.sf.net |