It has been a while since I did anything with web2py, but I seem to recall
that if you didn't have a view for a function it would
open up a default view, which is also in a file. (Was it generic.html?)
Anyway, the point being you might want to use that
for your "catch all" file instead of creating your own specific file.
On Sunday, January 4, 2015 4:59:40 AM UTC-5, Przemysław wrote:
>
> Solved. Just to give a tip to another newbie:
> 1. In "mycontroler.py" place the code "response.view = 'myview.html' " to
> force executing "myview.html" regardless of a function name.
> 2. In "myview.html" use {{if request.function==anyviewname:}} to execute
> just a block of code designed for a certain view.
> Or just look inside "appadmin.py" and "appadmin.html" of your application
> to get the idea.
> Przemek
>
--
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.