A remote view must define self.column_names
to return a (fixed) list of string column names and
self.listing() to return a possibly varying
list of row values. If there is a single column
the listing() list must return a list of values,
but for multiple columns it must return a list
of tuples with one entry for each column.
The remote view implementation may optionally
redefine __init__ also, please see gfintrospect.py
Methods
|
|
__init__
listing
|
|
__init__
|
__init__ (
self,
column_names=None,
rowlist=None,
)
do whatever needed for initialization
|
|
listing
|
listing ( self )
return list of tuples of right sizes to match column_names.
for more interesting views this will do something more
complex ;).
|
|