[web2py] Re: for i,row in enumerate(rows) second condition

2014-07-02 Thread Annet
Hi Simone, Wouldn't all this brain-hurting nested loops with inclusion within the view > be infinitely easier if you could just have THE correct structure BEFORE > fiddling with HTML ? > That's what I thought, hence my question in the workgroup. Thanks for answering it, your solution is useful

[web2py] Re: for i,row in enumerate(rows) second condition

2014-06-30 Thread Niphlod
Wouldn't all this brain-hurting nested loops with inclusion within the view be infinitely easier if you could just have THE correct structure BEFORE fiddling with HTML ? Taken directly from stackoverflow def chunks(l, n): if n < 1: n = 1 return [l[i:i + n] for i in range(0, l