[web2py] Re: modular layout

2010-02-14 Thread salbefe
Another question I would like a put a calendar on my website. div class=unit div class=container {{include 'default/calendar.html'}} /div /div I know how to generate a calendar in python with html but is not clear to me if I need a controller and then I should pass the

[web2py] Re: modular layout

2010-02-14 Thread mdipierro
There are two types of frameworks. push and pull. In the pull frameworks, the url maps into a view and the view calls multiple controller actions. In the push, the url maps into one controller action which renders one ore more views. web2py (as well as Django, Pylons, and Rails) are push. The

[web2py] Re: modular layout

2010-02-14 Thread mdipierro
If you are not loading a page subset via ajax. Then your view includes another view, your one and only controller must generate all the variables needed by both views. On Feb 14, 5:54 am, salbefe salb...@gmail.com wrote: Another question I would like a put a calendar on my website. div

[web2py] Re: modular layout

2010-02-14 Thread salbefe
Thank you Massimo, {{=LOAD('default','sidebar',ajax=True)}} has solved my problem. Thanks a lot On 14 feb, 16:01, mdipierro mdipie...@cs.depaul.edu wrote: If you are not loading a page subset via ajax. Then your view includes another view, your one and only controller must generate all the