I see. Thank you for your help!
David
On 22.7.2015 19:16, Anthony wrote:
It has nothing to do with WSGI. Now that I look back at the code, I
see that run_view_in() simply looks for a "compiled" folder, and if
it exists, it assumes all views are compiled. That means if any part
of the app is compiled, even a single non-compiled view will lead to
this error (which is why I had submitted that patch).
As a workaround, I believe you can set response.view to an open file
object:
response.view = open(os.path.join(response.folder, views,
response.view), 'rb')
Or you can go back to calling gluon.template.render directly, though
in that case, you should set context=globals() to ensure the full
view environment (including the web2py API) is available.
Anthony
--
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.