Re: [web2py] Re: Object Row. Error in 2.0.8 not in 2.0.0

2012-09-08 Thread Massimo Di Pierro
No, what you have will work as expected. On Saturday, 8 September 2012 17:02:00 UTC-5, rochacbruno wrote: > > I am using: > > cache_key = "%s_%s_%s" % (query, start, end) > total, rows = cache.ram(cache_key, lambda: (db(query).count(), > db(query).select(limitby=(start, end), cacheable=True)), 36

Re: [web2py] Re: Object Row. Error in 2.0.8 not in 2.0.0

2012-09-08 Thread Bruno Rocha
I am using: cache_key = "%s_%s_%s" % (query, start, end) total, rows = cache.ram(cache_key, lambda: (db(query).count(), db(query).select(limitby=(start, end), cacheable=True)), 3600) Should I put a dummy cache=(...) just to have the benefits? --

Re: [web2py] Re: Object Row. Error in 2.0.8 not in 2.0.0

2012-09-08 Thread Marin Pranjić
I don't understand (ckickin?) It should be optional and it shouldn't default to current behavior as it breaks old apps. On Sat, Sep 8, 2012 at 7:22 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > What do other people think? We can make the new behavior optional and only > ckickin wh