The arguments to select should be the fields, not their names: db(db.cargroup).select(db.cargroup.descr, db.cargroup.seats,orderby=db.cargroup.descr).as_list()
On Dec 10, 1:53 pm, villas <villa...@gmail.com> wrote: > If I make a function with named fields, e.g. > > def cargroup(): > carlist = > db(db.cargroup).select('descr','seats',orderby="descr").as_list() > return dict(carlist=carlist) > > Then call it with .xml extension, I get an <_extra> tag element for > each row, e.g.: > > <item><_extra><descr>Chevrolet Matiz</descr><seats>3</seats></_extra></ > item> > > Why do we have the <_extra> tag? If I do not specify fields, then I > don't see that. Is it a bug? > > -D