I think you are in need of limitby=(start,end) partners = db(db,partners.id>0)select(limitby=(0,10))
2010/11/23 Kenneth Lundström <kenneth.t.lundst...@gmail.com> > Hello list, > > I惴 trying to make a TOP10 list but don愒 know how :=( > > First I select the partners: > partners = db(db.partners.id > 0).select() > > for partner in partners: > sales = db(db.sales.partner == partner).select() > > make some calculations and get a value for the customer. Where do I > store this value and how do I sort the list of partners so I get a TOP10 > list? > > Somehow this doesn愒 feel like a big deal to implement but can愒 get started. > > > Kenneth > -- Bruno Rocha http://about.me/rochacbruno/bio