fixed problem with multiple uris and lazy tables

This commit is contained in:
mdipierro
2013-11-11 10:16:38 -06:00
parent 833694229d
commit fb9ad028f8
2 changed files with 8 additions and 9 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.7.4-stable+timestamp.2013.11.11.09.39.55
Version 2.7.4-stable+timestamp.2013.11.11.10.15.42
+7 -8
View File
@@ -7588,13 +7588,12 @@ class DAL(object):
for db in db_group:
if not db._uri:
continue
k = hide_password(db._uri)
infos[k] = dict(dbstats = [(row[0], row[1]) for row in db._timings],
dbtables = {'defined':
sorted(list(set(db.tables) -
set(db._LAZY_TABLES.keys()))),
'lazy': sorted(db._LAZY_TABLES.keys())}
)
k = hide_password(db._adapter.uri)
infos[k] = dict(
dbstats = [(row[0], row[1]) for row in db._timings],
dbtables = {'defined': sorted(
list(set(db.tables)-set(db._LAZY_TABLES.keys()))),
'lazy': sorted(db._LAZY_TABLES.keys())})
return infos
@staticmethod
@@ -8248,7 +8247,7 @@ def index():
def __repr__(self):
if hasattr(self,'_uri'):
return '<DAL uri="%s">' % hide_password(str(self._uri))
return '<DAL uri="%s">' % hide_password(self._adapter.uri)
else:
return '<DAL db_uid="%s">' % self._db_uid