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
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
Hi All,
Can I call custom functions in views? Functions that I have created in my
controller/default.py.
Thanks.
--
3 matches
Mail list logo