[web2py] Re: How can i select an item from the database only once?

2018-09-28 Thread Dave S
On Thursday, September 27, 2018 at 10:24:00 PM UTC-7, mostwanted wrote: > > Thank you Dave but this URL https://web2py.com/boobs/default/29/07/forms-and-validators#SQLFORM-and-insert-update-delete > >

Re: [web2py] Re: routes.py Python 3 regex error

2018-09-28 Thread Bryan Chance
Added those, but the underlying issue is still there. On Fri, Sep 28, 2018 at 12:32 PM Leonel Câmara wrote: > You probably need to use raw strings in routes_in too if that \\g is > indeed just \g > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > -

[web2py] Re: routes.py Python 3 regex error

2018-09-28 Thread Leonel Câmara
You probably need to use raw strings in routes_in too if that \\g is indeed just \g -- 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 this

Re: [web2py] routes.py Python 3 regex error

2018-09-28 Thread Bryan Chance
one correction, the \\g's are actually \g On Fri, Sep 28, 2018 at 12:20 PM Bryan Chance wrote: > I'm working to switch my web2py application to Python 3. However, I now > get errors when loading due to my routes.py: > > File "/usr/lib/python3.6/sre_parse.py", line 401, in _escape > raise

[web2py] routes.py Python 3 regex error

2018-09-28 Thread Bryan Chance
I'm working to switch my web2py application to Python 3. However, I now get errors when loading due to my routes.py: File "/usr/lib/python3.6/sre_parse.py", line 401, in _escape raise source.error("bad escape %s" % escape, len(escape)) sre_constants.error: bad escape \g at position 35 My

Re: [web2py] Connect DAL to Azure Postgres Instance

2018-09-28 Thread Javier Pepe
Try this: db = DAL("postgres://xw@dbname-postgres: p...@dbname-postgres.postgres.database.azure.com/dbname") El vie., 28 de sep. de 2018 a la(s) 02:17, gb (gregb...@gmail.com) escribió: > Trying to connect to Azure-hosted postgres on version > 2.17.1-stable+timestamp.2018.08.06.01.02.56 > > If

[web2py] Re: Object not found

2018-09-28 Thread mostwanted
On Friday, September 28, 2018 at 1:40:56 PM UTC+2, mostwanted wrote: > > Hey Matthew, i have another view called viewPurchases that has a link that > sends my args to the client_update controller, i didnt include it in the > above code i thought is wasn't important it looks like this: > >

[web2py] Re: Object not found

2018-09-28 Thread mostwanted
Hey Matthew, i have another view called viewPurchases that has a link that sends my args to the client_update controller, i didnt include it in the above code i thought is wasn't important it looks like this: *viewPurchases VIEW* Client Surname Booked Room Reservation

[web2py] Re: Object not found

2018-09-28 Thread 'Matthew J Watts' via web2py-users
Looks like you are not sending/recieving your args properly ( For example You need to send args=Customer.id , from a button or redirect for example You then need to request the Customer.id in the 'Client_Update' function So you'd need def Client_Update(): client=request.args(0,cast=int)

[web2py] Object not found

2018-09-28 Thread mostwanted
I have 3 table, Items, Client & Purchases, the Client table stores the details of the customer, the items table has a list of sold items and Purchases stores what the customer purchased on what day. I have a function in the controller that allows the editing of Customer and Purchases details

Re: [web2py] Broken/Changed Link on Web2py.com

2018-09-28 Thread Massimo Di Pierro
Thank you Nico. Merged. On Thursday, 27 September 2018 12:25:46 UTC-7, Nico Zanferrari wrote: > > Hi, > > thaks for reporting. I've just made the PR2026 > "Python 3 compatibility + > fixed link for cookbook" in order to correct the web2py's home