[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 greatly appreciate 
quick reply

-- 
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.


[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
>> migrate=False,fake_migrate=True
>> line before closing the table definition.
>>
>> My question is has this issues been addressed with the latest versions 
>> like the 2.16.1 or are we still likely to get the *corrupt tables error *and 
>> be forced to use the *fake_migrate* solution?
>>
>> Thanks
>>
>>
> Under what circumstances did you experience a corrupt tables error?  I 
> believe my only experiences with mangled table files involve Windows Update 
> reboots or system crashes. I don't think I've had that problem on Linux 
> machines.  FWIW, I use the sqlite backend, although the table files are 
> "front end".
>
> /dps
>
> Hey Dave, it was just a random error really, i'd work on an projec, shut 
> my machine, the next time i re-opened the project and tried to make a 
> database entry i'd get the error!!
>
But now that u are mentioning system crushes maybe it had something to do 
with my hard-drive coz it always gave me problems since i last dropped my 
laptop, maybe those errors stemmed from that. All along i though it could 
be a bug that came with the version of the web2py i was using, i posed this 
question to be sure coz lately i've been working on clients projects and 
feared that may still be an issue with web2py!

-- 
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.


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 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  > wrote:
>
>> 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/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> ---
>> You received this message because you are subscribed to a topic in the
>> Google Groups "web2py-users" group.
>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>> pic/web2py/zaSUvXJQE_E/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> web2py+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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.
>

-- 
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.


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 level, that's an array reference and the other is a function 
... and Anthony has posted about the additional parameters the function has.

/dps

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/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+un...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Massimiliano
>

-- 
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.


[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.
>
> My question is has this issues been addressed with the latest versions 
> like the 2.16.1 or are we still likely to get the *corrupt tables error *and 
> be forced to use the *fake_migrate* solution?
>
> Thanks
>
>
Under what circumstances did you experience a corrupt tables error?  I 
believe my only experiences with mangled table files involve Windows Update 
reboots or system crashes. I don't think I've had that problem on Linux 
machines.  FWIW, I use the sqlite backend, although the table files are 
"front end".

/dps


-- 
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.


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.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/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.
>>
>
>
>
> -- 
> Massimiliano
>

-- 
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.


[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.

--
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.


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 
wrote:

> 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/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/web2py/zaSUvXJQE_E/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.


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 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/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.
>

-- 
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.


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/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.


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/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.
>



-- 
Massimiliano

-- 
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.


[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 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.


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 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/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.


[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 single 
element: `A||B`, with the internal representation `|A|||B|`.

The same thing happens if the 2 elements as `A` followed by `|B`: single 
element `A||B`, internally `|A||B|`.

This looks like a bug to me, but thought I'd check here first.  I'm using 
v2.16.1 
under python2.7 on MacOS 10.12.6

- Scott

-- 
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.


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/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.