[web2py] Re: 50x performance improvement for web2py in TechEmpower Web Framework Benchmarks

2016-11-20 Thread Mark Graves
This is great news! Thank you for working on this, all of you. Any ability to check out the errors? Would love to know what that was. On Saturday, November 19, 2016 at 2:16:18 PM UTC-6, Massimo Di Pierro wrote: > > Fantastic! Thank you Anthony, Michele, Simone, Richard, Paolo, Giovanni > and ev

Re: [web2py] scheduling multiple tasks

2016-11-20 Thread Nico de Groot
Hi Vid, Two remarks at first sight. In save_outs you initialize the variable now. But you queue the task using start_now. But the task is inserted, maybe just copy paste error in your post... Is the function readOutFile working? Can you show It? It seems it gets stuck when called the second time

Re: [web2py] web2py react-python

2016-11-20 Thread Mark Graves
Hey Jose, I can't necessarily tell you about react-python as I haven't used it. I have however had interest in maintaining the ability to server side render with the same templates as I use on a fully client side application. I'd love to hear some input on this, but my thoughts are that it allow

[web2py] Found a typo in the docs in auth

2016-11-20 Thread António Ramos
If the visitor is not *logger* in, and calls a function that requires authentication, the user is redirected to auth.settings.login_url which defaults to URL('default','user/login'). One can replace this behavior by redefining: logger should be logged ??? regards António -- Resources: - http:

Re: [web2py] Re: DAL with db2 on ISeries/OS400 table names converted to AUTH_0000x

2016-11-20 Thread António Ramos
Never tried after this issue. I will let you know shortly this month. regards 2016-11-14 14:43 GMT+00:00 Jim S : > Also, you could create an alias for those tables using the longer names. > > http://www.ibm.com/support/knowledgecenter/ssw_ibm_i_73/ > sqlp/rbafycreatingalias.htm > > create alias l

[web2py] Re: what is in the cache ?

2016-11-20 Thread Niphlod
goes to redis, obviously! and redis usually stores it into ram (although it usually saves a copy to the disk, which is configurable, but just to not make it totally volatile between restarts of redis) On Friday, November 18, 2016 at 12:21:05 PM UTC+1, Pierre wrote: > > Yes I improved my understa

[web2py] Re: Processing taking a long time in web2py?

2016-11-20 Thread Niphlod
hiding behind auth doesn't get you protected by DDoS. opening a process inside a web2py app vs pure python depends on you comparing oranges to apples. web2py env with the default webserver is a threaded env, your pure python process probably isn't. On Friday, November 18, 2016 at 8:34:46 AM UT

Re: [web2py] web2py react-python

2016-11-20 Thread José Luis Redrejo
I must confess my ignorance: Having read and played with react, and being a long time web2py user, I don't get the point of rendering react in the server from python, connected with a node application. I have made react applications running in the view and using json to communicate with the python

Re: [web2py] Re: Graph Model (proposal to contribute)

2016-11-20 Thread Andrew Willimott
Thanks Donald, I'll do another round of improvements and then create a PR. it does need to handle larger models better and I'll improve the code layout too. I'm also learning the d4 differences and there are a lot of future options with using d3. web2py with a d3 interactive front end is a

Re: [web2py] 'str' object has no attribute 'year'

2016-11-20 Thread 'Annet' via web2py-users
Hi Richard, Thanks for your reply, you are right, setting default to None solves the problem. Kind regards, Annet -- 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

Re: [web2py] lastName, firstName in form

2016-11-20 Thread 'Annet' via web2py-users
Hi Anthony and Richard, Thank you both for your replies It's probably a good idea to strip any leading/trailing whitespace before > the names are ever inserted in the database. > To solve the issue I use .strip() Kind regards, Annet -- Resources: - http://web2py.com - http://web2py.com/bo

[web2py] Re: Check to establish whether or not a record exists

2016-11-20 Thread Meinolf
Hi Massimo Just came across this post and got a bit alarmed, so when i check if a record exists i don't have to use the usual '==' but instead '=' ? On Monday, October 10, 2011 at 3:55:27 PM UTC+2, Massimo Di Pierro wrote: > > row = db.postcode_cache(postcode=postcode) > if not row: > db.postc

[web2py] web2py react-python

2016-11-20 Thread Mark Graves
Hey everyone, I recently stumbled across this: https://github.com/markfinger/python-react/issues/70#issuecomment-254396083 Just thought I'd share for anyone who was looking for something similar -Mark -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.c