def source_console(req, dbname, sid): db = TamerDB(dbname) tab = req.GET['tab'] if 'tab' in req.GET else 0 source = {'id': sid, 'name': db.source_name(sid), 'stats': db.source_stats(sid)} return render_to_response('tamer/source-console.html', { 'navitems': nav_items(db), 'source': source, 'tab': tab, 'actionsets': action_sets(db, tab, sid)})
def source_console(req, dbname, sid): db = TamerDB(dbname) tab = req.GET['tab'] if 'tab' in req.GET else 0 source = {'id': sid, 'name': db.source_name(sid), 'stats': db.source_stats(sid)} return render(req, 'tamer/source-console.html', { 'navitems': nav_items(db), 'source': source, 'tab': tab, 'actionsets': action_sets(db, tab, sid)})