Within one controller, one function can call another.

If you have two controllers in different apps they should not depend
on each other because the two apps  can be distributed separately.

It remains the case of two controllers in the same app. If they depend
one on the other they should be the same controller.

Perhaps I am missing something Can you make an example of use case?

On Aug 30, 6:51 pm, monotasker <[email protected]> wrote:
> Hi all,
>
> I'm fairly new to python as well as to web2py, so this may be a silly
> question. But is there any way to make one controller extend another,
> like view inheritance?
>
> More broadly, I'm finding that it's hard to take advantage of python's
> OO structure in controllers. I keep writing nested "if else"
> statements to handle different kinds of input, instead of being able
> to invoke different objects to handle it. I feel like I'm back to old-
> style javascript functions for controllers.
>
> Thanks for your help,
>
> Ian

Reply via email to