[web2py] Re: python2 and python3 in 1 machine

2018-05-07 Thread lyn2py
Yes I'm using this way to run both py2 and py3 on the same machine Have 2 folders, one for py2 and one for py3. python2 ...path to py2 folder/web2py.py ...and do the same for py3. Works! On Tuesday, May 8, 2018 at 8:11:37 AM UTC+8, 黄祥 wrote: > > plan to test web2py both python2 and python3

[web2py] python2 and python3 in 1 machine

2018-05-07 Thread 黄祥
plan to test web2py both python2 and python3 in 1 machine, any idea how to do that in the safety way? already googling found this: brew update brew install python brew install python3 any thought or comment? thx and best regards, stifan -- Resources: - http://web2py.com -

Re: [web2py] Re: impact of deploying w2p file

2018-05-07 Thread Vic
Thank you very much for the detailed explanation . On Mon, May 7, 2018 at 9:55 PM, Dave S wrote: > > > On Monday, May 7, 2018 at 12:04:44 PM UTC-7, Vic Ding wrote: >> >> Dear both, many thanks! Will the *.table files have impact/effect on the >> actual db content on the

Re: [web2py] Re: impact of deploying w2p file

2018-05-07 Thread Dave S
On Monday, May 7, 2018 at 12:04:44 PM UTC-7, Vic Ding wrote: > > Dear both, many thanks! Will the *.table files have impact/effect on the > actual db content on the target server? Or will the w2p file alter the > database on the target server in any way? And what is the purpose of the >

Re: [web2py] Re: impact of deploying w2p file

2018-05-07 Thread Vic
Dear both, many thanks! Will the *.table files have impact/effect on the actual db content on the target server? Or will the w2p file alter the database on the target server in any way? And what is the purpose of the included sqlite file? I use w2p file to patch the production server from dev

[web2py] Re: impact of deploying w2p file

2018-05-07 Thread Dave S
On Saturday, May 5, 2018 at 8:00:45 PM UTC-7, Massimo Di Pierro wrote: > > the w2p may contain a sqlite database and databases/*.table metadata files. > you normally use those for install, not for updates. > > Also, if you are *creating* the w2p file, you can choose "custom" and then select the

[web2py] Re: Scheduler: Is it possible to assign a task to all workers that are part of a group?

2018-05-07 Thread Francisco Ribeiro
I have been testing my own hypothesis, it didn't work. I was unable to assign a task to a specific worker, I can only assign tasks to groups. Please correct me if I am wrong... On Sunday, 6 May 2018 16:16:08 UTC+1, Francisco Ribeiro wrote: > > Thank you for confirming. > > I presume that I

Re: [web2py] Re: How to empty a list after a loop iteration

2018-05-07 Thread Maurice Waka
Actually I found out that I can empty the list before new insertion / append. On Mon, 7 May 2018, 19:55 pbreit wrote: > I'm not sure that's going to work since the list will not persist between > page views. > > Do you want to do something like this using "sessions"? >

[web2py] Re: How to empty a list after a loop iteration

2018-05-07 Thread pbreit
I'm not sure that's going to work since the list will not persist between page views. Do you want to do something like this using "sessions"? http://web2py.com/books/default/chapter/29/03/overview#Let-s-count -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] SQLFROM.factory csv file upload and manipulation

2018-05-07 Thread Yebach
Hello I am trying different approaches to upload and manipulate csv file before insert it into DB I do not need to save the file but If I can open it with csv DictReader that would be awesome. Any suggestions on how to achieve it. I am trying with SQLFORM.factory

[web2py] How to empty a list after a loop iteration

2018-05-07 Thread Maurice Waka
I have done this in python 2.7 idle and it works well. l = [] def one(): l.append('1one') def two(): l.append(None) def three(): l.append('three') def four(): l.append(None) def empty(): del l[:] def Filter(): four() two() one()