Re: [web2py] Re: Redis and Python3?

2019-03-31 Thread Jim Steil
Thanks Joe Not what I wanted to hear, but the right answer. I'm just going to have to keep redis back leveled for now. Jim On Sun, Mar 31, 2019, 10:40 PM Joe Barnhart wrote: > Looking at the rest of globals.py I don't think this approach will work. > For one, it affects storing sessions in an

[web2py] Re: Redis and Python3?

2019-03-31 Thread Joe Barnhart
Looking at the rest of globals.py I don't think this approach will work. For one, it affects storing sessions in any database, not just redis. Since the table is declared with a "boolean" field I don't think its gonna like the string version of "False". I wonder why we don't have a simple min

[web2py] Re: Click the update web2py button in Python Anywhere (PA) leads to crash.

2019-03-31 Thread 黄祥
*pls read carefully first or test on another pc first, before execute on server bash* # change to home directory cd # make folders for appdata mkdir -p ~/appdata/applications mkdir -p ~/appdata/databases mkdir -p ~/appdata/uploads # backup applications mv ~/web2py/applications/* ~/appdata/applic

Re: [web2py] Re: Click the update web2py button in Python Anywhere (PA) leads to crash.

2019-03-31 Thread Nico Zanferrari
Hi Ron, the integrated upgrade button works fine on PA. But after obtaining the ticket error on the web2py page you have to go to the PA admin page, under the WEB tab, and press the green RELOAD button. The page is something like " https://www.pythonanywhere.com/user/yourname/webapps/#tab_id_yourn

[web2py] Re: Redis and Python3?

2019-03-31 Thread Jim S
I changed the following in gluon/globals.py and mine is working now. But, I'm unclear on how to test to see if it is handling the locking properly: dd = dict(locked=False, client_ip=response.session_client, modified_datetime=request.now, session_data=session_pickled

[web2py] Re: web3py again....

2019-03-31 Thread Massimo Di Pierro
The app that is supposed to respond to: http://localhost:8000/_error/{uuid} does not exist yet. It is an easy todo. Maybe I will do it today. This is not going to be backward compatible for another month. Do not expect to updat

[web2py] Re: placeholder for update record field names

2019-03-31 Thread Steve
Hi Anthony, Thanks, i will give it a try Op vrijdag 29 maart 2019 21:53:49 UTC+1 schreef Anthony: > > You can create a dictionary of field names and values and then do: > > workrecord.update_record(**dict_of_new_values) > > Anthony > > On Friday, March 29, 2019 at 4:49:28 PM UTC-4, Steve wrote: >

[web2py] Re: placeholder for update record field names

2019-03-31 Thread Steve
Hi Anthony, Thanks, i will give it a try Op vrijdag 29 maart 2019 21:53:49 UTC+1 schreef Anthony: > > You can create a dictionary of field names and values and then do: > > workrecord.update_record(**dict_of_new_values) > > Anthony > > On Friday, March 29, 2019 at 4:49:28 PM UTC-4, Steve wrote: >

[web2py] Re: how to add users to existing programmatically using an if statement

2019-03-31 Thread Leonel Câmara
register_bare returns the user record, so you can get user_id in user.id You can get the group id by doing # Assuming you create a group with role = 'Manager' and another with role = 'Assistante' group_id_manager = auth.id_group('Manager') group_id_assistant = auth.id_group('Assistant') Alterna

[web2py] Click the update web2py button in Python Anywhere (PA) leads to crash.

2019-03-31 Thread Ron Chatterjee
Hello, Clicked on the update button on python anywhere and web2py didn't update. Python Anywhere send me a link to help the issue which doesn't help the issue. May be they don't have a clue. Have anywhere created a python anywhere site where they "update" the web2py using the PA button and it c

[web2py] Re: web3py again....

2019-03-31 Thread 黄祥
> > Backporting SQLFORM, grid and Auth, should not be that complicated, > although I think we can do better. > sqlform, grid and auth is a great helper to make web2py as rapid application development, but please consider some of users who want to use another css or js framework. perhaps just f

[web2py] Re: web3py again....

2019-03-31 Thread 黄祥
new behaviour learned for now: 1. start server with python web3py.py applications/, then copy the app and access the new app in the browser will result : Error: 404 Not Found, solution whenever add new app must restart the server (gunicorn) 2. seems index not the default function like in web2py,