Re: [web2py] Re: DAL Connection String

2012-02-07 Thread Hugh Barker
Excellent, thanks very much. This solved my issue. 2012/2/8 Niphlod : > PS : final DAL initiation code is > > db = DAL('postgres://hello:p%40ssword@localhost:5432/bbb', > decode_credentials=True)

Re: [web2py] Re: DAL Connection String

2012-02-07 Thread Niphlod
PS : final DAL initiation code is db = DAL('postgres://hello:p%40ssword@localhost:5432/bbb', decode_credentials=True)

Re: [web2py] Re: DAL Connection String

2012-02-07 Thread Niphlod
Ok, I was a little unclear. There's no need to change any regex in DAL code. Let's say we have a database named "bbb", on localhost, port 5432, username "hello" and password "password". DB URI will be : postgres://hello:password@localhost:5432/bbb Now, the decode_credential part. With the reg

Re: [web2py] Re: DAL Connection String

2012-02-06 Thread Hugh Barker
Thanks for that. I tried setting it to true, but no luck. >From what I understand from the code though, I wouldn't expect it to - the credential_decoder lambda that gets set up based on that flag isn't used until after the regex tries to split the URI, ie: m = re.compile('^(?P[^:@]+)(\:

[web2py] Re: DAL Connection String

2012-02-06 Thread Niphlod
in gluon/dal.py you can find this def __init__(self, uri='sqlite://dummy.db', pool_size=0, folder=None, db_codec='UTF-8', check_reserved=None, migrate=True, fake_migrate=False, migrate_enabled=True, fake_migrate_all=False,