On Friday, February 23, 2018 at 7:29:32 PM UTC-8, 黄祥 wrote:
>
> according to book : 
> http://web2py.com/books/default/chapter/29/04/the-core?search=response.render,
>  
> the response.render is used in controllers, let say, my controller is 
> contain nested loop and i decide to put it on views, but i don't want to 
> lose the web2py cache function
>

normally, Stifan's posts are easy to read, but this one I don't 
understand.  iterselect() is being used, but I don't see the looping ... is 
that being done by jquery calls?

*e.g.*
> *controllers/default.py*
> @cache.action(time_expire = cache_time_expire, cache_model = cache_model, 
> quick = cache_quick, prefix = cache_prefix)
> def report_bank():
> rows_currency = db(db.currency.id > 0).iterselect()
> return dict(rows_currency = rows_currency)
>
> and put the nested loop in views, my question is this function is cached 
> without assigned to response.render? if not how can i cache this function 
> using web2py way?
>
> thanks and best regards,
> stifan
>

/dps
 

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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/d/optout.

Reply via email to