Instead of this maxID=db(db.node).select(db.node.id.max()).first()['MAX(node.id)']
I would do maxID=db(db.node).select(db.node.id.max()).first()[db.node.id.max()] to make sure it will continue work in the future. The former is implementation dependent. On Wednesday, 12 September 2012 11:29:04 UTC-5, Annet wrote: > > Hi Vladimir, > > Some time ago Anthony provided me with the following solution: > > maxID=db(db.node).select(db.node.id.max()).first()['MAX(node.id)'] > rows=db(db.node.id>=maxID-10).select(db.node.id > ,db.node.computedName,orderby=~db.node.id) > > > Kind regards, > > Annet > --