You could setup the scheduler to run your time consuming back-end tasks. http://web2py.com/books/default/chapter/29/04/the-core#web2py-Scheduler
Then just send an email to the user when it is done. You can place your 3rd party code in the modules folder or just install as a regular Python package. -Jim On Thursday, February 1, 2018 at 7:01:02 AM UTC-6, Gregorio Bueno wrote: > > Hi Web2py team, > > I have a Python script where users enter some information, the code will > process it and return the results. The script code is a little big, with > many imports and runs on few servers with RPyC. I have to start the script > via command line, enter the input information and wait for the results. > Until now, it is working fine. > > > The next step is to develop a Web Server where users will access it, enter > the inputs information on a HTML page, and after that, they will have the > results printed on screen. > > My doubt is how can I pass the variables entered by user to a third > script. Searching for it, I found that I can run a third code under Modules > folder and import it on controllers. Some forums says to use local_import > (due to some limitations), but according with The Book, it must be a normal > import. > > Could someone please help me to find the best way for Web2py to send a > variable and trigger a 3rd code, and also, how Web2py can wait for the > results (it can last up to 1 minute)? > > > Thank you very much. > -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.