[web2py] Re: rendering database contents in layout

2011-04-01 Thread kawate
Thank you Anthony That is beautful!! On 4月2ζ—₯, 午後12:57, Anthony wrote: > You could define some_function in a model file (functions defined in model > files are available in views, though functions defined in controllers are > not), and then you could call it directly in your layout.html view (or

[web2py] Re: rendering database contents in layout

2011-04-01 Thread pbreit
LOAD sounds like the perfect approach.

[web2py] Re: rendering database contents in layout

2011-04-01 Thread Anthony
You could define some_function in a model file (functions defined in model files are available in views, though functions defined in controllers are not), and then you could call it directly in your layout.html view (or you could call it within a separate sidebar view file, and then include that