[web2py] Re: About Rest API uploads (again)

2018-02-16 Thread Val K
Are you trying to insert formData in something another? I believe, that formData should be passed to axios as is: axios.post('../services/api/uploadimg', formData) if you need to add some fields just do it: formData.append('name', 'blah') On Monday, February 5, 2018 at 7:16:04 AM UTC+3,

[web2py] Re: How to have a view getting data from a long running time controller ?

2018-02-16 Thread Val K
Yes, I played with Gunicorn+gevent workers - just "time.sleep(0)" in the slow controller releases worker to service other requests. On Saturday, February 17, 2018 at 3:08:54 AM UTC+3, Anthony wrote: > > Note, that will consume one of your web server processes/threads for the > entire duration

[web2py] Re: How to have a view getting data from a long running time controller ?

2018-02-16 Thread Anthony
Note, that will consume one of your web server processes/threads for the entire duration of the processing -- might be better with an async server like gevent. Anthony On Friday, February 16, 2018 at 6:48:56 PM UTC-5, Val K wrote: > > Just a very simple example using

Re: [web2py] Re: How to have a view getting data from a long running time controller ?

2018-02-16 Thread António Ramos
Will try it... I knew i would need a Yield !! Many thanks for your time António -- 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

[web2py] Re: How to have a view getting data from a long running time controller ?

2018-02-16 Thread Val K
Just a very simple example using https://github.com/axios/axios def long_load(): ret = DIV() ret.append(SCRIPT(_src=URL('static/js','axios.min.js'))) ret.append(SCRIPT( """ function DownLoadTick(e){ document.getElementById("result").innerHTML =

[web2py] Re: Where does the manage code go?

2018-02-16 Thread Anthony
> > You have a great book, However, I find it exasperating how many times you > do not explicitly state where code should go. > EVERY SINGLE code entry should have an explicit listing of the file it is > supposed to go into. That really shouldn't be difficult. > > I have actually had to go to

[web2py] Re: routes_in: escape question mark

2018-02-16 Thread nethugolol
Thanks Anthony, I'll try with one of those workarounds. El viernes, 16 de febrero de 2018, 13:21:14 (UTC-3), Anthony escribió: > > Unfortunately, the rewrite system does not match on the query string. Some > options are: > >- Use your web server to do the rewrite. >- Implement WSGI

[web2py] Re: Where does the manage code go?

2018-02-16 Thread Dave S
On Friday, February 16, 2018 at 2:10:38 PM UTC-8, Bryan Nahrwold wrote: > > I am assuming this is so obvious that you don't feel the need to state it > explicitly, but where the heck does the manager code go in the book code > 3.3.2 Adding Grids? > > This is just a controller function, so it

[web2py] Where does the manage code go?

2018-02-16 Thread Bryan Nahrwold
I am assuming this is so obvious that you don't feel the need to state it explicitly, but where the heck does the manager code go in the book code 3.3.2 Adding Grids? I've tried several file locations which all don't work. The book states on page 105-106 (version

[web2py] Google analytics does not work in 2.16.1 but does in an older app

2018-02-16 Thread Yi Liu
I haven't got any tracking from my Google analytics for my new website trialert.com. I thought new tracking might take some time. But it hasn't shown up any tracking for 2 weeks. Then today I tried to use analytics.min.js from an older app in the same web2py setup. It starts to show active

[web2py] Re: routes_in: escape question mark

2018-02-16 Thread Anthony
Unfortunately, the rewrite system does not match on the query string. Some options are: - Use your web server to do the rewrite. - Implement WSGI middleware to do the rewrite (or at least rewrite the legacy URLs in a way that the web2py rewrite system can then match them, such as

[web2py] Re: parametric routes

2018-02-16 Thread Anthony
On Friday, February 16, 2018 at 7:03:18 AM UTC-5, Scorpa wrote: > > Documentation about parametric system is VERY bad and doesnt describe its > abilities in. > There is more detail in the example file: https://github.com/web2py/web2py/blob/master/examples/routes.parametric.example.py > But

[web2py] Re: only static files forbidden on centos 7.4 apache 2.4

2018-02-16 Thread lucas
alright, well this has me thinking towards a whole new http server. i just might do it very soon, especially since it just a yum/rpm package on centos already. thank you all for your input. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: routes_in: escape question mark

2018-02-16 Thread nethugolol
I think URL mapping occurs before. However I don't care about the lang value itself, just want to support a legacy URL. > > El jueves, 15 de febrero de 2018, 22:26:56 (UTC-3), Dave S escribió: > > > > On Thursday, February 15, 2018 at 4:05:32 PM UTC-8, nethu...@gmail.com > wrote: >> >> Hello

[web2py] Re: parametric routes

2018-02-16 Thread Scorpa
Documentation about parametric system is VERY bad and doesnt describe its abilities in. But because it's stated that parametric systems should be suffcient for all i assume somewhere i can find how to implement my solution. For example is it able to do redirect from "/smth" which is view