Re: [web2py] Re: "TypeError: sequence of byte string values expected, value of type str found" when accessing admin

2020-05-01 Thread João Matos
Hello, Nope. What I did was use another port with HTTPS (not 443, eg. 8000) for the client's application. Best regards, João Matos On 01/05/2020 19:15, Ian W. Scott wrote: Did you ever solve this problem? I'm running into the same thing. On Monday, April 8, 2019 at 12:56:4

[web2py] How can I save the row.id of each grid selection when the user changes grid page?

2019-07-05 Thread João Matos
Hello, How can I save the row.id of each grid selection when the user changes grid page (using grid pagination)? Thanks, JM -- 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] How to disable grid pagination but keep the "selectable" option buttons visible?

2019-07-05 Thread João Matos
Hello, How to disable grid pagination but keep the "selectable" option buttons visible? Thanks, JM -- 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

[web2py] Re: OperationalError: no such table: contacts

2019-05-31 Thread João Matos
If you don't need any data in the db, delete everything in databases and check that in models\db.py the DAL creation has migrate=True. Then restart your app. All tables should be recreated. quarta-feira, 29 de Maio de 2019 às 20:13:07 UTC+1, karthikeyan p escreveu: > > i am running my web2py app

[web2py] Re: https and apache

2019-05-29 Thread João Matos
Do you have an error? quarta-feira, 15 de Maio de 2019 às 06:29:02 UTC+1, Cris Fad escreveu: > > Dear all, > > I have problems to access web2py on apache throught https. I run > setup-web2py-ubuntu.sh, in the folder web2py/scripts and while the http is > responding correctly the https is not. I

[web2py] Re: How can I generate hash for user password like web2py

2019-05-29 Thread João Matos
I use Python's hashlib module. It contains pbkdf2. segunda-feira, 27 de Maio de 2019 às 12:13:54 UTC+1, Константин Комков escreveu: > > Can somebody told about free library for windows (.dll) which can generate > hash of password like web2py (pbkdf2 + sha512)? > -- Resources: - http://web2py.c

[web2py] Re: Https Apache Problem

2019-05-22 Thread João Matos
I use Apache with HTTPs on Windows systems. Do you have an error? quarta-feira, 15 de Maio de 2019 às 06:28:55 UTC+1, Cris Fad escreveu: > > Hello, > > I am trying to run w2p on apache. I do so by running the script > setup-web2py-ubuntu.sh in the folder web2py/scripts. It works fine for the >

[web2py] Re: production - db migration issue. Works in sqlite but not mysql

2019-05-22 Thread João Matos
Don't use MySQL but try setting the migrate=False in the DAL creation (usually in models/db.py). And add migrate=True to all your own tables (eg. products). quarta-feira, 15 de Maio de 2019 às 12:53:05 UTC+1, Ron Chatterjee escreveu: > > > Hello all, > > In PA I am running this app with an exist

[web2py] Re: More then one buttons on form

2019-05-22 Thread João Matos
See the doc http://web2py.com/books/default/chapter/29/07/forms-and-validators?search=Adding+buttons+to+FORMs#Adding-buttons-to-FORMs quarta-feira, 22 de Maio de 2019 às 09:12:19 UTC+1, Константин Комков escreveu: > > Web2py automatically add event listeners and class="btn" for button. What > i

[web2py] Re: SQL ALL & ANY operators - ?

2019-05-22 Thread João Matos
That ALL ( http://www.web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#_lastsql) is

[web2py] Re: A question about ajax function (passing a string parameter over)

2019-05-16 Thread João Matos
Have you considered base64 encoding/decoding? quinta-feira, 16 de Maio de 2019 às 20:43:58 UTC+1, Vlad escreveu: > > I have the following javascript in the view: > > var id = $('#CurrentCartId').text(); > var description = $(this).text(); > var url='{{=URL('car

Re: [web2py] Re: Future of web2py

2019-05-13 Thread João Matos
You are correct. I though you meant keeping the app open and trying to use the database or loading another page. In the case you close the app then you would need some kind of embedded server (as I already mentioned) or serviceWorker (which I think is something lighter but similar). For the cas

Re: [web2py] Re: Future of web2py

2019-05-13 Thread João Matos
That is only checking if the Internet connection/db connection exists. That could be done by every web app (web2py or otherwise). That is not the definition of a PWA. >From wikipedia " Progressive web applications (PWAs) are web applications that load like regular web pages or websites but can of

Re: [web2py] Re: Future of web2py

2019-05-12 Thread João Matos
I dont' think web2py can support PWA because PWA is a web app that can run online and offline in a mobile device. Someone would have to build an embedded server to include in the mobile app (PWA) and that raises several questions due to the nature of the majority of web2py apps which depend on a

[web2py] Re: Why my form is not working

2019-05-12 Thread João Matos
Why not create a simple condition using # The form should have the same name in both conditions. if request.now.time().hour < 12: # Show morning form including the edit and submit buttons. else: # Show afternoon form including the edit and submit buttons. # If you want to validate anythin

[web2py] Re: Compiled pack always includes databases and private dirs. Is there any way to pack w/o those?

2019-05-12 Thread João Matos
I was just pressing the checkbox and nothing happened. I pressed the app name and now the tree struc appears. Thanks. domingo, 12 de Maio de 2019 às 13:01:42 UTC+1, Anthony escreveu: > > Click on the folder to expand. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: Compiled pack always includes databases and private dirs. Is there any way to pack w/o those?

2019-05-11 Thread João Matos
[image: PackCustom.png] Tried that, but there is only the option to select either w2p or exe. No folder selection (onyl the app name in the checkbox). I enclose an image of the options available in Pack custom. I tried source and compiled. Both show the same options. I tried Firefox and Chrome.

[web2py] Re: How to change the time zone in web2py under PythonAnywhere?

2019-05-10 Thread João Matos
Thanks Massimo. In this case that is exactly what I want. sexta-feira, 10 de Maio de 2019 às 02:59:24 UTC+1, Massimo Di Pierro escreveu: > > > Mind os.eviron is not thread safe. You are changing not your one app, but > for all your installed web2py apps. > > On Tuesday, 7 May 2019 11:06:21 UTC-

[web2py] Compiled pack always includes databases and private dirs. Is there any way to pack w/o those?

2019-05-09 Thread João Matos
Hello, Compiled pack always includes databases and private dirs. Is there any way to create a compiled pack without including those dirs? Thanks, JM -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.

[web2py] Re: custom search

2019-04-25 Thread João Matos
You don't have the standard buttons, but have a search button created by you? quinta-feira, 25 de Abril de 2019 às 15:21:41 UTC+1, Andrea Fae' escreveu: > > I create a custom search, so not standard field with "Search" and "reset" > button standard. How to click the button "Search" programmatic

[web2py] Re: datepicker preserve selecred date after postback

2019-04-25 Thread João Matos
Is the selected date in a db field? Then when editing the same field, the date picker should show the selected date. If the date is still not saved to a db field but only in js, then you can send it using something similar to this