I wanted to implement the 'extracolumns' feature of SQLTABLE
and the example provided in the source code is:
:param extracolums = [{'label':A('Extra',_href='#'),
'class': '', #class name of the header
'width':'', #width in pixels or %
'content':lambda row, rc: A('Edit',_href='edit/
%s'%row.id),
'selected': False #agregate class selected to this
column
}]
I assumed that I would have to substitute the 'row' in the content
definition
statement with the actual array used to build the SQLTABLE, but I was
surprised to find that example worked exactly as written.
I don't understand this because I didn't define 'row' or 'rc' anywhere
in my controller, but the content definition worked anyways.
It seems silly to question something that is working,
but I'd like to understand where 'row' and 'rc' come from
if someone is willing to offer an explanation.
Thanks in advance - Tom