[web2py] Re: Doubt in the example provided on web2py manual page 98

2013-03-15 Thread Sarbjit singh
Anthony, you are right. I am new to web2py and following this example from the book. It actually gives me an impression that index.html is not used since it is mentioned that index.html will be modified and it is immediately following the line where it is mentioned generic.html will be used if

[web2py] Re: Doubt in the example provided on web2py manual page 98

2013-03-15 Thread Anthony
Note, generic.html is not being used. The following two sentences are simply explaining how web2py works, not what is happening in this particular example: When developing, if there is no view, the action is rendered by the > "generic.html" view that is provided with every web2py application.

[web2py] Re: Doubt in the example provided on web2py manual page 98

2013-03-15 Thread Mark
I read your question again and think yamandu had already answered your question. There are "if ... elif ... else ..." in the index.html, which you may need to have a look. For your case, index.html worked similar to generic.html, but doesn't mean that the generic.html is used. On Thursday, Marc

[web2py] Re: Doubt in the example provided on web2py manual page 98

2013-03-14 Thread Sarbjit singh
Let me explain : As per that example, we create a new appliance which means default/index.html does exists and we are modifying controllers/default.py index function as shown in original post. So my question is if default/index.html does exist, then why generic.html is being used? hope this cl

[web2py] Re: Doubt in the example provided on web2py manual page 98

2013-03-14 Thread Mark
If you don't have a view (such as index.html), the generic view (generic.html) will be used. Isn't it clear? On Thursday, March 14, 2013 7:54:38 AM UTC-4, Sarbjit singh wrote: > > In the 5th edition of web2py manual, for the example of images app, I have > one doubt :- > > As per that app code,