Ok, so it's possible (but extremely rare) that I get differents hash by
doing this :
def ...
rows = db(db[request.args(0)].id>0).select(db[request.args(0)].ALL)
list_of_row_md5h = []
for r in rows:
list_of_row_md5h.append((r.id,r.hmd5))
table = SQLTABLE(rows, columns=+[ request.args(0)+'.%s'%i \
for i in db[request.args(0)].fields if i not in not_to_show ], \
truncate=300)
form = SQLFORM.factory(Field('review_records', 'boolean',
label=T('Review record(s)')),*hidden=dict(list_md5h=list_of_row_md5h)*)
??
Thanks
Richard
On Fri, Dec 16, 2011 at 4:08 PM, Anthony <[email protected]> wrote:
> def func():
>> rows = db().select(db.test1.ALL) <-- query executed here - results
>> stored in rows object
>> table = SQLTABLE(rows) <-- rows object converted to SQLTABLE object
>>
> Note, the SQLTABLE object isn't serialized to an actual HTML table until
> the view where it is inserted is executed.
>
> Anthony
>