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)
PS : final DAL initiation code is
db = DAL('postgres://hello:p%40ssword@localhost:5432/bbb',
decode_credentials=True)
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
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[^:@]+)(\:
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,
5 matches
Mail list logo