Not sure I understand. By definition functions defined in controllers are not visible to views unless:
- the function is passed to the view "return dict(myfunc=__myfunc)" - the function is defined in a model file - the function is defined in the view itself {{...}} or a view that is {{include '...'}}. If the function is to be used in views only I suggest the third approach. Massimo On May 13, 9:26 am, carlo <syseng...@gmail.com> wrote: > I put some private functions in a controller: > > def __myfunc(): > a=request.vars.a > b=request.vars.b > myvalue=a+b > return myvalue > > What is the correct syntax to get "myvalue" in a view of a different > controller? > > carlo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---