On 25/09/2007, Tzury <[EMAIL PROTECTED]> wrote: > > > Yet another suggestion, > Today's web.select() returns itterBetter object which behave as > forward-only. This behaviour has advantages and disadvantages (e.g. > accessing the database more than once for the same record-set such as > calling len(list(we.select(...))) for a counter). > > May that behaviour can be customized upon function call: > web.select(view_name, where = x, order = y, autoDispose=False)
Why not just do: results = list(select(...)) in those few cases where you want to have all the items in any order? -- Tom Berger http://intellectronica.net/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/webpy?hl=en -~----------~----~----~----~------~----~------~--~---
