you can do: for row in rows: row.foo = row[foo]
and then you do not have to pass it. On Feb 27, 10:40 pm, Anthony <[email protected]> wrote: > > I am not convinced that > > > rows = db().select(db.table.field1.sum() as foo) > > + {{=row.foo}} > > > is any simpler than > > > foo = db.table.field1.sum() > > rows = db().select(foo) > > + {{=row[foo]}} > > The problem is in the latter case, you have to pass foo to the view -- not > a big deal with just foo, but more cumbersome with multiple expressions. > > Anthony

