Thanks!

On Oct 31, 8:23 am, ron_m <ron.mco...@gmail.com> 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 if a change is
> needed.
>
> On Oct 30, 5:15 pm, ron_m <ron.mco...@gmail.com> wrote:
>
>
>
>
>
>
>
> > 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 <elf...@yahoo.com> 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-RPC
> > > service. But I wonder if this is an overkill as __foo() is just 5
> > > lines. Or should I go with execution environment 
> > > (http://www.web2py.com/book/default/chapter/04#Execution-Environment)?It
> > > seems that in email threads and the book, there is a note of caution
> > > associated with execution environment.
>
> > > What are the issues/dangers when using execution environment?

Reply via email to