Re: [web2py] Re: delete a SQLTABLE column

2011-08-04 Thread Richard Vézina
I can't, I have to work with the html table because I do this before creating the SQLTQBLE : db[request.args(0)].sample_id.represent=\ lambda sample_id, record: A("%(sample)s" %db.v_sample_num_all[sample_id],\ _href=URL(r=request,f='read',args=request.args(0)+'/'+st

[web2py] Re: delete a SQLTABLE column

2011-08-03 Thread Massimo Di Pierro
I do not think this qualifies for addition but it is useful. I would have done: rows = db().select(db.table.ALL) db.table.fieldtodelete.writable=False table = SQLTABLE(rows) or rows = db().select(*[field for field in db.table if not field.name=='fieldtodelete']) table = SQLTABLE(rows) On Aug