[web2py] Re: call function in template layout

2012-03-14 Thread Anthony
> > In a view you can only call functions defined in this view or a one being > extended/included: > http://web2py.com/books/default/chapter/29/5#Functions-in-views You can also call functions defined in any model file (all objects defined in model files are available in the view environment),

Re: [web2py] Re: call function in template layout

2012-03-14 Thread bussiere bussiere
Thanks Bussiere "Les nouvelles technologies offrent pleins de nouvelles possibilités, pleins de possibilités d'erreurs surtout en fait." insurance.aes256 : http://goo.gl/gHyAY On Wed, Mar 14, 2012 at 12:15 PM, Wikus van de Merwe wrote: > In a view you can only call functions defined in thi

[web2py] Re: call function in template layout

2012-03-14 Thread Wikus van de Merwe
In a view you can only call functions defined in this view or a one being extended/included: http://web2py.com/books/default/chapter/29/5#Functions-in-views More complex data processing should be done in the controller. Views should just present the data. Make the form transformation in the cont