Hello!
How can I import some function from models to my module?
for example:
mymodel.py:
def func1():
return 'qwe'
how to call this function from
mymodule.py?
I found just one solution:
in mymodule.py:
from gluon import current
current.globalenv['func1']()
It works, but I'm not sure that it's the right thing to do.