Re: [web2py] Re: which is the preferred way?

2010-07-23 Thread Jonathan Lundell
On Jul 23, 2010, at 4:39 PM, Rob wrote: > Hi Massimo, > > Thanks, that is what I prefer as well. There are MVC arguments for pushing the html into the view. But this example is an easy one in this regard. Most of my tables don't go straight from the database to the view. Rather, they get manip

[web2py] Re: which is the preferred way?

2010-07-23 Thread Rob
Hi Massimo, Thanks, that is what I prefer as well. On Jul 23, 2:08 pm, mdipierro wrote: > I tend to do it in the views but I would make it a rule > > On Jul 23, 3:49 pm, Rob wrote: > > > What is the preferred way you guys do things? > > > controller (this covers both examples): > > def index():

[web2py] Re: which is the preferred way?

2010-07-23 Thread mdipierro
I tend to do it in the views but I would make it a rule On Jul 23, 3:49 pm, Rob wrote: > What is the preferred way you guys do things? > > controller (this covers both examples): > def index(): >     rows = db().select(db.Category.ALL) >     table = TABLE() >     for row in rows: >         table.