Try this:

rows = Rows(colnames=['controle.redmine'], records=records, db={})

SQLTABLE expects the column names to be in 'tablename.fieldname' format, 
and it needs at least a dummy "db" object that can be subscripted with keys 
(so, an empty dictionary will do).

Anthony

On Sunday, October 20, 2013 6:34:58 PM UTC-4, Anthony wrote:
>
> I'm sure it can be made to work. You might need to set 
> colnames=['controle.redmine']. Note, {{=rows}} is equivalent to 
> {{=SQLTABLE(rows)}}, so you can look at the SQLTABLE code in 
> gluon.sqlhtml.py to get an idea what needs to be done.
>
> Anthony
>
> On Sunday, October 20, 2013 3:15:22 PM UTC-4, JaapP wrote:
>>
>> Hello Anthony,
>>
>> Your code is working for me!
>> If you want to display the rows from a view with {{=rows}} i still get an 
>> error, but i use a custom table builder which takes a rows object as input, 
>> and this works just fine.
>>
>> In the end, my mistake was not importing a row object, only a rows 
>> object..
>>
>> Thanks a lot for taking the time to answer my question!
>>
>> Jaap
>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to