From 37f81b48e8e437149da2eadf9b3bd26c74f71bf2 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Mon, 27 Aug 2012 16:16:25 -0500 Subject: [PATCH] improved toorbar, thanks Anthony --- VERSION | 2 +- gluon/globals.py | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 82e44bf8..e04ac15d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.00.1 (2012-08-27 15:29:22) rc4 +Version 2.00.1 (2012-08-27 16:16:20) rc4 diff --git a/gluon/globals.py b/gluon/globals.py index 10c9a912..9e65c6c5 100644 --- a/gluon/globals.py +++ b/gluon/globals.py @@ -405,10 +405,15 @@ class Response(Storage): dbstats = [TABLE(*[TR(PRE(row[0]),'%.2fms' % (row[1]*1000)) \ for row in i.db._timings]) \ for i in thread.instances] - dbtables = dict([(i.uri, [t for t in i.db.tables if t not in i.db._LAZY_TABLES]) + dbtables = dict([(i.uri, {'defined': sorted(list(set(i.db.tables) - + set(i.db._LAZY_TABLES.keys()))) or + '[no defined tables]', + 'lazy': sorted(i.db._LAZY_TABLES.keys()) or + '[no lazy tables]'}) for i in thread.instances]) else: dbstats = [] # if no db or on GAE + dbtables = {} u = web2py_uuid() return DIV( BUTTON('design',_onclick="document.location='%s'" % admin),