Got it, thank you! On Wed, May 15, 2019, 9:35 PM Dave S <[email protected]> wrote:
> > > On Wednesday, May 15, 2019 at 4:45:17 PM UTC-7, Vlad wrote: >> >> c1.py and c2.py are controllers. >> c2 has a function f in it. >> Can code in c1.py call the function f? >> > > If f is a function in the URL sense (that is, it is top level in c2.py, > and has no arguments, and the URL /.../appY/c2/f makes sense) you can > redirect to it. I do not know, and have never tried, to call f directly, > but the py-dotted notation c2.f *might maybe* work, imports done > correctly. > If f has arguments and isn't an endpoint, then it could be in a file > module/m1.py, and imported by c1 and c2, or the *might-maybe* could be in > play. > > That would depend, I suppose, on how the custom importer works. It is > known to work for modules. > > /dps > > > > > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to a topic in the > Google Groups "web2py-users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/web2py/LVQkZVfaoZM/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/web2py/2c0c9fd4-9c54-4e81-adec-5fa16ebec737%40googlegroups.com > <https://groups.google.com/d/msgid/web2py/2c0c9fd4-9c54-4e81-adec-5fa16ebec737%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/CABZ%2BKCC_SLj-SCsy0oDdmjsHtatqqz-JwcLV3Ep6YnQsMh9POA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

