[web2py] Re: Calling a function that exists in another controller

2010-10-30 Thread Luther Goh Lu Feng
Thanks! On Oct 31, 8:23 am, ron_m wrote: > Oops to clarify put the function in a file under the modules > directory. While in development mode the local_import has a reload > option so the code gets reloaded on each request. The default is to > load once on first use which requires server restart

[web2py] Re: Calling a function that exists in another controller

2010-10-30 Thread ron_m
Oops to clarify put the function in a file under the modules directory. While in development mode the local_import has a reload option so the code gets reloaded on each request. The default is to load once on first use which requires server restart if a change is needed. On Oct 30, 5:15 pm, ron_m

[web2py] Re: Calling a function that exists in another controller

2010-10-30 Thread ron_m
You could put the code in a module and use local_import in both controllers. On Oct 30, 11:52 am, Luther Goh Lu Feng wrote: > Which syntax should I use to call in controllerA.py a private function > __foo() defined in controllerB.py? > > I understand that one recommendation is to implement an XML