[web2py] Re: pycharm "No python interpreter selected"

2019-04-07 Thread Alex Glaros
I installed source version of web2py windows and that worked. I guess windows binary doesn't have a path to python.exe -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

[web2py] Re: error connecting to postgrsql when running web2py from source on windows

2019-04-07 Thread Alex Glaros
How to pip install psycopg2? I get the following error: C:\Users\alex_\AppData\Local\Programs\Python\Python37>pip install psycopg2 'pip' is not recognized as an internal or external command, operable program or batch file. C:\Users\alex_\AppData\Local\Programs\Python\Python37>python Python

[web2py] Re: web2py 2.18.5 is OUT

2019-04-07 Thread Massimo Di Pierro
errata. Many **thanks** to Paolo Pastori for his many bugs fixes and patches. :-) On Sunday, 7 April 2019 22:02:22 UTC-7, Massimo Di Pierro wrote: > > Contains mostly bug fixes, backward compatibility fixes, internal rewrites. > Many takes to Paolo Pastori for his many bugs fixes and patches. >

[web2py] web2py 2.18.5 is OUT

2019-04-07 Thread Massimo Di Pierro
Contains mostly bug fixes, backward compatibility fixes, internal rewrites. Many takes to Paolo Pastori for his many bugs fixes and patches. Massimo -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: concurrent queries to restful service response time issue

2019-04-07 Thread Massimo Di Pierro
Mind they are not equivalent. s = storage(mw.ls == f).select(mw.iIdL).first() fetches all records but filters the first at the python level. You want: s = storage(mw.ls == f).select(mw.iIdL, limitby=(0,1)).first() On Saturday, 6 April 2019 21:18:03 UTC-7, Metra Oknehcvark wrote: > > Hello ,

[web2py] Re: Modules not loading in python 3

2019-04-07 Thread Massimo Di Pierro
Can you provide an app as an example. Will make out debugging easier. On Saturday, 6 April 2019 21:18:03 UTC-7, John Bannister wrote: > > > Hi all, > > I have recently upgraded to python 3.6 from 2.7 running on Centos7 with > apache. Problem I am having is as follows:- > 1: I have a number of

[web2py] Re: Validation messages of extra fields in auth_user don't comply with available translations

2019-04-07 Thread João Matos
Thanks Anthony. Already updated the Github issue and created a post in the developers. domingo, 7 de Abril de 2019 às 20:28:26 UTC+1, Anthony escreveu: > > Yes, as noted, that code inverts the sort order for date/time fields when > the field is clicked, but there is no inversion when using the

[web2py] Re: Validation messages of extra fields in auth_user don't comply with available translations

2019-04-07 Thread Anthony
Yes, as noted, that code inverts the sort order for date/time fields when the field is clicked, but there is no inversion when using the orderby argument. I'm not sure why the order is inverted for such fields. Maybe bring it up in the developers group. On Sunday, April 7, 2019 at 3:19:51 PM

[web2py] Re: Validation messages of extra fields in auth_user don't comply with available translations

2019-04-07 Thread João Matos
I think I found the source of the problem. After following the function in the previous message, I arrived at this code inside the linsert function (line 2779) . exception = sort_field.type in ('date', 'datetime', 'time') if exception:

[web2py] Re: Validation messages of extra fields in auth_user don't comply with available translations

2019-04-07 Thread João Matos
I think I found the problem (I don't have the solution). In gluon\sqlhtml.py there is this function def fix_orderby(orderby): if not auto_pagination: return orderby # enforce always an ORDER clause to avoid # pagination errors. field_id

[web2py] Re: Validation messages of extra fields in auth_user don't comply with available translations

2019-04-07 Thread João Matos
Thank you for the feedback Anthony. That was my thinking but I was hoping to be wrong. Any idea where in the web2py code is the grid sorting? I would like to take a look. domingo, 7 de Abril de 2019 às 19:22:34 UTC+1, Anthony escreveu: > > On Saturday, April 6, 2019 at 3:41:50 PM UTC-4, João

[web2py] Re: Validation messages of extra fields in auth_user don't comply with available translations

2019-04-07 Thread Anthony
On Saturday, April 6, 2019 at 3:41:50 PM UTC-4, João Matos wrote: > > Thanks Anthony. I will open an issue (I still haven't enough know how to > make a PR). I hope some time in the future. > > I don't want to abuse your help, but I have another issue that is viewable > with the minimal app I

Re: [web2py] Re: web3py again....

2019-04-07 Thread Anthony
Not sure what that means -- Massimo will have to reply. Once a module has been loaded within a given Python process, it won't be repeatedly reloaded -- see https://docs.python.org/3/reference/import.html#the-module-cache. web2py model and controller files are executed on every request -- if

Re: [web2py] Re: web3py again....

2019-04-07 Thread João Matos
That was the word used by Massimo. He stated "In web2py we do not reload the modules. we reimport them at every request. this causes a performance penalty and is only needed in development." My question was if it is possible to disable module reimport at every request in production or it just

Re: [web2py] Re: web3py again....

2019-04-07 Thread Anthony
On Sunday, April 7, 2019 at 1:33:22 PM UTC-4, João Matos wrote: > > @Anthony > > I was asking about reimport not reload. > Does track_changes appy to both? > What do you mean by "reimport"? Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] Re: web3py again....

2019-04-07 Thread João Matos
@Anthony I was asking about reimport not reload. Does track_changes appy to both? domingo, 7 de Abril de 2019 às 18:30:24 UTC+1, Anthony escreveu: > > On Sunday, April 7, 2019 at 1:19:08 PM UTC-4, João Matos wrote: >> >> @Massimo >> >> You state >> "In web2py we do not reload the modules. we

Re: [web2py] Re: web3py again....

2019-04-07 Thread Anthony
On Sunday, April 7, 2019 at 1:19:08 PM UTC-4, João Matos wrote: > > @Massimo > > You state > "In web2py we do not reload the modules. we reimport them at every > request. this causes a performance penalty and is only needed in > development." > > Does this mean it is possible to disable module

Re: [web2py] Re: web3py again....

2019-04-07 Thread João Matos
@Massimo You state "In web2py we do not reload the modules. we reimport them at every request. this causes a performance penalty and is only needed in development." Does this mean it is possible to disable module reimport at every request in web2py when in production (or did I misunderstood

[web2py] Re: Validation messages of extra fields in auth_user don't comply with available translations

2019-04-07 Thread Massimo Di Pierro
fixed in master. Thanks for reporting and diagnosis. -- 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

Re: [web2py] Re: web3py again....

2019-04-07 Thread Kevin Keller
I couldn't find the numbers that quickly, but key point is the bigger Flask community and plugin availability. Also if people look for job for companies that use python most of the time they look for Flask or Django experience. Web3Py build on Flask would also remove the questions for beginners

Re: [web2py] Re: CSS button alignment

2019-04-07 Thread Maurice Waka
Thanks. On Sat, 6 Apr 2019, 20:49 'Annet' via web2py-users wrote: > I think Bootstrap's float-right and float-left will solve this issue. > > https://getbootstrap.com/docs/4.1/utilities/float/ > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > -

[web2py] Re: Thank you Web2py community - I have completed a live application, ViewBase.com, using Web2py

2019-04-07 Thread mostwanted
Congratulations William, this is great stuff. Mostwanted On Friday, April 5, 2019 at 6:44:56 PM UTC+2, William wrote: > > Just writing to thank Massimo and the Web2py community, for answering all > my questions here and also building this awesome framework. > > I'm proud to say my application,