[web2py] Re: Upgrading from 2.08 to 2.18.5

2019-06-12 Thread Dave S
On Wednesday, June 12, 2019 at 2:43:20 PM UTC-7, Dave S wrote: > > > > On Wednesday, June 12, 2019 at 1:13:38 PM UTC-7, Jim Gregory wrote: >> >> I will be moving a legacy application from my old shared host to a new >> VPS, and would like to upgrade web2py at the same time from 2.08 to the >> c

RE: [web2py] Re: Web3py FORM referenced fields

2019-06-12 Thread John Bannister
Hi Massimo, Issue is not the dropdown for referenced fields on an Add rec as that works fine. Issue is when you want to edit a record with a referenced field so form=Form(db.order, record=id) Referenced field is blank (although dropdown is available). All other fields are populated

[web2py] Re: web2py on Raspbian and Python 2 or 3?

2019-06-12 Thread Massimo Di Pierro
I agree. On a pi you do not have a lot of cores. I would stick with just rocket On Tuesday, 11 June 2019 14:18:04 UTC-7, Donald McClymont wrote: > > Why not just use the built in rocket server on a pi? Seems far simpler > and performance is always going to be fairly limited given the hardware y

[web2py] Re: Upgrading from 2.08 to 2.18.5

2019-06-12 Thread Massimo Di Pierro
the cleanest option is to install the new web2py and then copy or symlink your application under the applications folder. Check that everything works well before deploying. I'd b interested to know if anything break. I do not expect anything to break. On Wednesday, 12 June 2019 13:13:38 UTC-7,

[web2py] Re: Web3py FORM referenced fields

2019-06-12 Thread Massimo Di Pierro
I added an example that works for me. Maybe can help you debug the problem: http://127.0.0.1:8000/examples/dbform2 On Wednesday, 12 June 2019 04:02:18 UTC-7, John Bannister wrote: > > Hi All, > > Does anyone have a working example of web3py Form using referenced fields? > > I have created the sta

[web2py] Re: Upgrading from 2.08 to 2.18.5

2019-06-12 Thread Dave S
On Wednesday, June 12, 2019 at 1:13:38 PM UTC-7, Jim Gregory wrote: > > I will be moving a legacy application from my old shared host to a new > VPS, and would like to upgrade web2py at the same time from 2.08 to the > current version (2.18.5). How should I go about doing this? What changes

[web2py] Re: Upgrading from 2.08 to 2.18.5

2019-06-12 Thread 黄祥
> > I will be moving a legacy application from my old shared host to a new > VPS, and would like to upgrade web2py at the same time from 2.08 to the > current version (2.18.5). How should I go about doing this? > since you said from shared host to a new host, perhaps can do it manually: - ba

Re: [web2py] Re: setting up pscycopg2

2019-06-12 Thread Dave S
On Wednesday, June 12, 2019 at 2:29:51 AM UTC-7, Annet wrote: > [...] > On Linux I ran the following code to install psycopg2 > > export PATH=/usr/pgsql-9.1/bin/:$PATH > mkdir -p ~/lib/python2.7 > easy_install-2.7 psycopg2 > > This isn't done as sudo? > As far as I know Web2py will always

[web2py] Upgrading from 2.08 to 2.18.5

2019-06-12 Thread Jim Gregory
I will be moving a legacy application from my old shared host to a new VPS, and would like to upgrade web2py at the same time from 2.08 to the current version (2.18.5). How should I go about doing this? What changes will I need to make? I'm satisfied for now with the currently layout (which u

[web2py] Re: Web3py FORM referenced fields

2019-06-12 Thread Massimo Di Pierro
thanks for reporting this. please open a web3py ticket and will look into this shortly. On Wednesday, 12 June 2019 04:02:18 UTC-7, John Bannister wrote: > > Hi All, > > Does anyone have a working example of web3py Form using referenced fields? > > I have created the standard person / pets tables

[web2py] Re: How to connect the database in web2py from the external python script

2019-06-12 Thread Jim S
One way is to write the script just like a web2py controller but call it from web2py. See here: http://web2py.com/books/default/chapter/29/04/the-core#Command-line-options Look at the -S, -M and -R options. Another way is to import the DAL (http://web2py.com/books/default/chapter/29/06/the-

[web2py] How to connect the database in web2py from the external python script

2019-06-12 Thread mrryanlam
How to connect the database in web2py from the external python script? please help Thanks -- 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 th

[web2py] Web3py FORM referenced fields

2019-06-12 Thread John Bannister
Hi All, Does anyone have a working example of web3py Form using referenced fields? I have created the standard person / pets tables with pets referencing person as 'reference person' in the table definition. Using form=Form(db.pet) I get the dropdown of persons for the add no worries but on th

Re: [web2py] Re: setting up pscycopg2

2019-06-12 Thread 'Annet' via web2py-users
Hi Dave, I work both on Mac OS X and Linux and have Postgres databases. On Mac OS X I located the pg_config file and added its location to the .bash_profile file: export PATH=/usr/local/bin:$PATH export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.3/bin Then I got pip and install

Re: [web2py] A none responsive If statement in the view

2019-06-12 Thread Dave S
On Tuesday, June 11, 2019 at 11:01:47 PM UTC-7, mostwanted wrote: > > Now i am in business!!! > >> Good to hear! /dps -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Rep