[web2py] Re: Where to call python code for processing (embedded as JS or in controllers)?

2015-07-09 Thread Phillip
The first processing is the importing of files which is intensive due to collecting data on pattern recognition in the files. Similarly, the processing intensiveness (on stored files after unpickling them) will be high in application due to extrapolation of the collected data. Larger files may

[web2py] Re: Where to call python code for processing (embedded as JS or in controllers)?

2015-07-08 Thread Phillip
Thank you for the responses. The python code does a lot of processing, so I need to make sure the application is scalable, and as price-sensitive is possible (if my concern is valid). So I'm looking for any way that I can allow the client to process the code. So I am trying to figure if

[web2py] Re: Where to call python code for processing (embedded as JS or in controllers)?

2015-07-08 Thread Anthony
Just to be clear, Python code does not run in the browser -- browsers can only run Javascript. If you want to offload processing to the client, they you need to convert your code to Javascript. There are a few projects that will compile Python code to Javascript, such as Brython. Anthony On

[web2py] Re: Where to call python code for processing (embedded as JS or in controllers)?

2015-07-08 Thread Dave S
On Wednesday, July 8, 2015 at 5:53:41 AM UTC-7, Phillip wrote: Thank you for the responses. The python code does a lot of processing, so I need to make sure the application is scalable, and as price-sensitive is possible Some of the contributors here run quite large projects with

[web2py] Re: Where to call python code for processing (embedded as JS or in controllers)?

2015-07-07 Thread Michael Beller
Why do you want to prevent the server from doing the python processing? I don't know what you mean by instead of embedding as JS On Tuesday, July 7, 2015 at 5:40:39 PM UTC-4, Phillip wrote: I am having trouble finding anything definitive here. Please help if you have any input, even if

[web2py] Re: Where to call python code for processing (embedded as JS or in controllers)?

2015-07-07 Thread Anthony
Any Python in your app, whether in a controller or view, will be executed on the server, as the browser cannot execute Python. If you want things to happen dynamically on the page in the browser without loading a new page, then you can use Javascript or make Ajax calls to get new HTML content