Re: [web2py] Functions in Views

2012-08-13 Thread Kevin Miller
Thank you very much Bruno. Just found out that I can return it in view. Thanks a lot for your reply. On Mon, Aug 13, 2012 at 7:48 PM, Bruno Rocha wrote: > You only can call functions that are in global scope. > > if you define function in /models/ so you can call those functions in > controller

Re: [web2py] Functions in Views

2012-08-13 Thread Bruno Rocha
You only can call functions that are in global scope. if you define function in /models/ so you can call those functions in controllers and views. If you defined in controller, so you have to return it to the view. controller/default.py --- def foo(): return "bar" d

[web2py] Functions in Views

2012-08-13 Thread Kevin Miller
Hi All, Can I call custom functions in views? Functions that I have created in my controller/default.py. Thanks. --