|
|
__init__(self,
db=global_settings.applications_parent,
records=[],
colnames=[],
compact=True,
rawrows=global_settings.applications_parent)
x.__init__(...) initializes x; see x.__class__.__doc__ for
signature |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
find(self,
f)
returns a new Rows object, a subset of the original object,
filtered by the function f |
source code
|
|
|
|
exclude(self,
f)
removes elements from the calling Rows object, filtered by the
function f, and returns a new Rows object containing the removed
elements |
source code
|
|
|
|
sort(self,
f,
reverse=True)
returns a list of sorted elements (not sorted in place) |
source code
|
|
|
|
group_by_value(self,
field)
regroups the rows, by one of the fields |
source code
|
|
|
|
as_list(self,
compact=True,
storage_to_dict=True,
datetime_to_str=True)
returns the data as a list or dictionary. |
source code
|
|
|
|
as_dict(self,
key='id',
compact=True,
storage_to_dict=True,
datetime_to_str=True)
returns the data as a dictionary of dictionaries
(storage_to_dict=True) or records (False) |
source code
|
|
|
|
|
|
|
xml(self)
serializes the table using sqlhtml.SQLTABLE (if present) |
source code
|
|
|
|
json(self,
mode='object',
default=global_settings.applications_parent)
serializes the table to a JSON list of objects |
source code
|
|
|
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__
|