Re: [web2py] Re: scale web2py horizontally (nginx + uwsgi + postgresql)

2017-11-29 Thread Áureo Dias Neto
When a I do a big query on any table (+- 3k rows), the process is too slow or in any cases, the memory is out and the nginx return a 502 -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/is

[web2py] Possible bug using | at end of element of list:string

2017-11-29 Thread Scott Hunter
Suppose I have a list:string field, and I put `A|B` in for one of the elements. This works as expected, and gets represented internally as `|A||B|`. Now suppose I break that up into 2 elements: `A|` followed by `B`. When I submit the form (a smart grid, in my case), it comes back with a singl

Re: [web2py] Re: scale web2py horizontally (nginx + uwsgi + postgresql)

2017-11-29 Thread Jim S
Seems underpowered to me. I'd want a lot more memory for my database. You also don't mention anything about your processor(s) or disk configuration. -Jim On Wednesday, November 29, 2017 at 4:44:46 AM UTC-6, Áureo Dias Neto wrote: > > When a I do a big query on any table (+- 3k rows), the proce

[web2py] request.args(0) vs request.args[0]

2017-11-29 Thread Yoel Benitez Fonseca
¿What is the diff? -- Msc. Yoel Benítez Fonseca -- 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

Re: [web2py] request.args(0) vs request.args[0]

2017-11-29 Thread Massimiliano
Try it without passing the args def test(): print request.args(0) #return None print request.args[0] #fail On Wed, Nov 29, 2017 at 5:16 PM, Yoel Benitez Fonseca wrote: > ¿What is the diff? > > -- > Msc. Yoel Benítez Fonseca > > -- > Resources: > - http://web2py.com > - http://web2py.com

Re: [web2py] Re: scale web2py horizontally (nginx + uwsgi + postgresql)

2017-11-29 Thread Áureo Dias Neto
My processor: Intel Xeon quad core 2.5 GHz Disk: 1tb HD do you recommend amazon cloud or Google app engine ?, I would like a more flexible environment, do you have experiences with these services? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com

Re: [web2py] Re: scale web2py horizontally (nginx + uwsgi + postgresql)

2017-11-29 Thread Chinh Dang
You can look into cloud-based solutions such as AWS RDS for your database hosting. RDS should scale your compute resources automatically. On Nov 29, 2017 11:28 AM, "Áureo Dias Neto" wrote: > My processor: Intel Xeon quad core 2.5 GHz > Disk: 1tb HD > > > do you recommend amazon cloud or Goo

Re: [web2py] Re: scale web2py horizontally (nginx + uwsgi + postgresql)

2017-11-29 Thread Jim Steil
We use internal servers for all of our apps. Our web service is 8 cores on VMWare with 16GB of ram. Our DB (MySQL) server is 4 cores with 16GB of ram. We routinely query tables with one million + records and have great response time. -Jim On Wed, Nov 29, 2017 at 10:27 AM, Áureo Dias Neto wrot

[web2py] web2py OpenID or Oauth2 provider

2017-11-29 Thread Carlos Cesar Caballero Díaz
Hi, is out there a working web2py Oauth2 or OpenID provider implementation? The Idea is to use an intranet web2py-bassed application as a auth provider for other services. I know that web2py comes with CAS integrated, but there are not too many software with CAS support. Greetings. -- Resourc

Re: [web2py] request.args(0) vs request.args[0]

2017-11-29 Thread Anthony
Also, request.args() takes some additional arguments: requests.args(0, default=some_default, cast=int, otherwise= a_function_or_redirect_url) Anthony On Wednesday, November 29, 2017 at 11:19:57 AM UTC-5, Massimiliano wrote: > > Try it without passing the args > > def test(): > print request.

[web2py] Re: Are we still like to experience the corrupt tables error solved by fake_migrate with this version

2017-11-29 Thread Dave S
On Tuesday, November 28, 2017 at 9:37:38 PM UTC-8, mostwanted wrote: > > With some earlier versions of web2py, the APPS we created used to > experience *corrupt tables error* and back then we'd advised to put > migrate=False,fake_migrate=True > line before closing the table definition. > > M

Re: [web2py] request.args(0) vs request.args[0]

2017-11-29 Thread Dave S
On Wednesday, November 29, 2017 at 8:19:57 AM UTC-8, Massimiliano wrote: > > Try it without passing the args > > def test(): > print request.args(0) #return None > print request.args[0] #fail > > That's "fail" as in "ticket issued", because of array bounds error. Also, on the grammar le

Re: [web2py] Re: scale web2py horizontally (nginx + uwsgi + postgresql)

2017-11-29 Thread Áureo Dias Neto
Even using non-database sessions, lazy tables, setting migrate to False and removing reload = True from the database connection in db.py, my rendering is too slow, my upload takes almost a minute for a 100kbs file .. some idea ? 2017-11-29 14:43 GMT-02:00 Jim Steil : > We use internal servers for

[web2py] Re: Are we still like to experience the corrupt tables error solved by fake_migrate with this version

2017-11-29 Thread mostwanted
On Thursday, November 30, 2017 at 1:40:05 AM UTC+2, Dave S wrote: > > > > On Tuesday, November 28, 2017 at 9:37:38 PM UTC-8, mostwanted wrote: >> >> With some earlier versions of web2py, the APPS we created used to >> experience *corrupt tables error* and back then we'd advised to put >> mig

[web2py] What is the diffrence between Web2py local host and Apache local host (wamp server)

2017-11-29 Thread Sandeep Patel
Hello Everyone, I hosted my web2py on AWS ec2 and Connected it with AWS RDS and ran web2py server (0.0.0.0:8000) locally. This provided me a global access. Now, I am curious as to what would have been the difference if i chose to host my web2py app on Apache local host (wamp server). Would gr