Hi All,
Can I call custom functions in views? Functions that I have created in my
controller/default.py.
Thanks.
--
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
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 rochacbr...@gmail.com wrote:
You only can call functions that are in global scope.
if you define function in /models/ so you can call those
3 matches
Mail list logo