Last page update: November 23, 2011
Classes:
External methods:
Complete reference:
there is no public method.
These methods don’t belong to any class.
findByAttr() readTab() merge() readXLS() readCSV() sortByAttr() readCSV_new() sortByItem()
Some useful operations on lists.
Row object. Allow access to data by column name. Allow also to add columns and alter data.
It is a utility method of the sql fetch() method. It returns a list of namedlist (that is, a list of dictionaries).
| Parameters: | columns – the items of the namedlist dict |
|---|
It is a utility method of the sql fetch() method. It returns a list of namedlist (that is, a list of dictionaries).
| Parameters: | columns – the values of the namedlist dict |
|---|
Same of get method’s dict
| Parameters: |
|
|---|
Same of has_key method’s dict. Return True if the key is in the dict, False otherwise
| Parameters: | x – the key to test |
|---|
Same of items method’s dict
Same of iteritems method’s dict
Same of keys method’s dict
Same of pop method’s dict
| Parameters: |
|
|---|
Same of update method’s dict
| Parameters: | d – the dict to update |
|---|
Same of values method’s dict
Read an XLS file
Find elements in the l list having attributes with names and values as kwargs items. Return the list’s attributes
| Parameters: | l – the list |
|---|
TODO
read a CSV file
| Parameters: | doc – the file to read |
|---|
This reads a CSV file - done by Jeff
| Parameters: | doc – the file to read |
|---|
Read a “tab delimited” file.
The readCSV() method was misnamed (read not only CSV files) but must be left for legacy
| Parameters: | doc – the file to read |
|---|
Read an XLS file
| Parameters: | doc – the file to read |
|---|
TODO
| Parameters: | l – the list |
|---|
Sort the list l, filled of objects with dict interface by items with key in *args. Return the list
| Parameters: |
|
|---|