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