uhm. a function defined in a controller is not available "globally". it's a
mere "structure" to have something that "replies" to a request.
why can't you "move" that controller function to models ?
I mean....
in a controller you have
def yourfunction():
return 'a'
but in the menu you can't "fetch" that easily.
The first thing that comes to mind is putting that function in a model, so
def yourfunction_helper():
return 'a'
in your menu is now simple to fetch the result, and in your controller you
can do
def yourfunction():
return yourfunction_helper()
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.