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

[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

[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/*

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 "

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

[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

[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')

[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

[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

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

[web2py] Re: web3py again....

2019-03-31 Thread Massimo Di Pierro
I am trying to keep it intentionally small and the API may change. For example I am going to refactor some of the decorators as bottle plugins. About your questions. we will continue use travis-ci like we do with web3py. I like behave but may people I talked too found it hard to learn and that

Re: [web2py] web3py again....

2019-03-31 Thread Massimo Di Pierro
Nope! If that is what you do, just use bottle. The whole point of web2py (which I am trying to preserve in web3py) is that the framework can run whether or not you have an application and multiple applications can be installed in a plug-and-play fashion. This means it is not logically possible

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

2019-03-31 Thread Massimo Di Pierro
Try http://localhost:8000/todoo /index On Saturday, 30 March 2019 19:50:57 UTC-7, 黄祥 wrote: > > *step* > rm -rf ~/learn/python/web3py > cd ~/learn/python > git clone

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

2019-03-31 Thread J-mic
I have two groups and I would like to add users to those groups; the groups are Manager and Assistant. def adminAdd(): assistant = request.vars.assistant manager = request.vars.manager if assistant==manager: user = auth.register_bare(

[web2py] web3py again....

2019-03-31 Thread Christopher Smiga
Hi Massimo and Team, It's been a several years since contributing to the project, and I'm interested in web3py for several reasons such as * it is a fresh project * speed * architecture improvements * the future of web2py In this effort, are pyunit (TDD), Python Behave Library

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

2019-03-31 Thread Massimo Di Pierro
On Saturday, 30 March 2019 02:26:22 UTC-7, 黄祥 wrote: > > on github : > >- request, response objects are from bottle ( >https://bottlepy.org/docs/dev/) > > what is different web2py and bottle in terms of request and response ? > plus minus between it? > slightly different syntax. bottle