Line 1999 in trunk: self.driver = drivers.get('pg8000') Should be: self.driver = self.drivers.get('pg8000')
On Mar 10, 8:07 pm, Alan Etkin <spame...@gmail.com> wrote: > If something changed (as now pg adapter supports pg8000 driver), old > uri strings would have to be accepted also. I'd say it's is a bug. > There seems to be a list/dict conflict in dal. > > On Mar 10, 2:16 pm, Bruce Wade <bruce.w...@gmail.com> wrote: > > > > > > > > > db_users = DAL('postgres://warplyde_fto:password@localhost/warplyde_fto') > > > Has something been changed in how we need to make database connections > > to postgres? > > > Traceback (most recent call last): > > File > > "/home/bruce/Development/wct_dev/web2py_dev/projects/fto/gluon/restricted.py", > > line 205, in restricted > > exec ccode in environment > > File > > "/home/bruce/Development/wct_dev/web2py_dev/projects/fto/applications/signon/models/db.py" > > <http://127.0.0.1:8000/admin/edit/signon/models/db.py>, line 14, in > > <module> > > db_users = > > DAL('postgres://warplyde_fto:password@localhost/warplyde_fto') > > File > > "/home/bruce/Development/wct_dev/web2py_dev/projects/fto/gluon/dal.py", > > line 5968, in __init__ > > raise RuntimeError, "Failure to connect, tried %d times:\n%s" % > > (attempts, tb) > > RuntimeError: Failure to connect, tried 5 times: > > Traceback (most recent call last): > > File > > "/home/bruce/Development/wct_dev/web2py_dev/projects/fto/gluon/dal.py", > > line 5955, in __init__ > > self._adapter = ADAPTERS[self._dbname](*args) > > File > > "/home/bruce/Development/wct_dev/web2py_dev/projects/fto/gluon/dal.py", > > line 1999, in __init__ > > self.driver = drivers.get('pg8000') > > AttributeError: 'list' object has no attribute 'get' > > > -- > > -- > > Regards, > > Bruce > > Wadehttp://ca.linkedin.com/in/brucelwadehttp://www.wadecybertech.comhttp:...