I mean the following logic: def foo(): ... ret = dict(...) if email_required: html = response.render(ret) ... # send html by email return html return ret
On Thursday, June 20, 2019 at 8:26:33 PM UTC+3, Vlad wrote: > > I couldn't figure out how this woks, so just rendered it again. Not a big > deal - just a matter of convenience. The email requests come occasionally, > so this extra render doesn't cause trouble. > > Thank you, Val! > > On Thursday, June 20, 2019 at 6:23:55 AM UTC-4, Val K wrote: >> >> I think you can try to yield rendered view from controller just by >> 'return rendered_response'. If controller returns string (not dict) it will >> be sent as is >> > -- 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 web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/da397328-7304-49f7-a6a6-c9588f54d8ba%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.