cacheable=True does not help ?

On Monday, February 18, 2013 4:11:13 PM UTC+1, howesc wrote:
>
> ah yes....
>
> the Rows() object returned from a select is not pickable.
>
> i do this a lot:
>
>     students = cache.ram('students',
>                         lambda:db(db.student.id>0).select(db.student.id, 
>                             db.student.family_name,
>                             ...
>                             db.student.student_age).to_dict(),
>                         3600)
>
>
> On Sunday, February 17, 2013 10:09:18 PM UTC-8, Andy W wrote:
>>
>> Thanks for the feedback Christian.
>>
>> It seems to be this that causes the problem on GAE but works on sqlite:
>>
>>     students = cache.ram('students',
>>                         lambda:db(db.student.id>0).select(db.student.id, 
>>                             db.student.family_name,
>>                             ...
>>                             db.student.student_age),
>>                         3600)
>>
>> Any ideas?
>>
>> Thanks,
>> Andy
>>
>>>
>>>>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to