Re: [web2py] Re: accessing a function in another controller

2019-07-04 Thread Massimo Di Pierro
maybe. I can tell you it is a challenge. :-) On Thursday, 16 May 2019 09:52:55 UTC-7, Vlad wrote: > > web2py is so amazingly great that the only excuse to come up with web3py > is if it's going to be much better than web2py, if such a thing is > possible:) > > On Thu, May 16, 2019 at 11:35 AM Ma

Re: [web2py] Re: accessing a function in another controller

2019-05-16 Thread Eliezer (Vlad) Tseytkin
web2py is so amazingly great that the only excuse to come up with web3py is if it's going to be much better than web2py, if such a thing is possible:) On Thu, May 16, 2019 at 11:35 AM Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > This is why we are making web3py. controllers are not re

Re: [web2py] Re: accessing a function in another controller

2019-05-16 Thread Massimo Di Pierro
This is why we are making web3py. controllers are not regular modules in web2py. On Wednesday, 15 May 2019 18:35:41 UTC-7, Dave S 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

Re: [web2py] Re: accessing a function in another controller

2019-05-15 Thread Eliezer (Vlad) Tseytkin
Got it, thank you! On Wed, May 15, 2019, 9:35 PM Dave S 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

Re: [web2py] Re: accessing a function in another controller

2019-05-15 Thread Dave S
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 mak

Re: [web2py] Re: accessing a function in another controller

2019-05-15 Thread Eliezer (Vlad) Tseytkin
c1.py and c2.py are controllers. c2 has a function f in it. Can code in c1.py call the function f? On Wed, May 15, 2019, 7:40 PM Dave S wrote: > > > On Wednesday, May 15, 2019 at 12:44:24 PM UTC-7, Vlad wrote: >> >> this must be a very basic question; I just don't have full clarity on how >> web

[web2py] Re: accessing a function in another controller

2019-05-15 Thread Dave S
On Wednesday, May 15, 2019 at 12:44:24 PM UTC-7, Vlad wrote: > > this must be a very basic question; I just don't have full clarity on how > web2py handles this: > > can code in one controller somehow access a function in another > controller? Or I have to move such a function to model code?