[web2py] Re: generate multiple form from a query

2011-12-14 Thread Cliff
jQuery solves this kind of problem quite nicely. Punctuation and closing parends left as an exercise in this example ;). Spelling not guaranteed either. The dollar sign = 'jquery'. Less typing. Assuming you have a set of rows in your controller... tbl = TABLE(THEAD(TH('name'), TH('What You

[web2py] Re: generate multiple form from a query

2011-12-12 Thread Massimo Di Pierro
'N'+''.join('o' for in in range(100))+'!' yes there is a better way :-) def bunch_update_with_multi_form(): for k in range(31): locals()['form%s' % k] = None # not sure if necessary if not request.args(0) in [... list of allowed tables...]: redirect(URL('error')) tablename, table =