Esempio n. 1
0
def v_explorer_ajax_create(req):
    exp = req.POST.get('exp')
    if not exp:
        return HttpResponse('No Expression', 400)
    data = dbquery.execute(exp)
    return resp_json(data)
Esempio n. 2
0
def v_explorer(req, tpl='dbe/explorer.html'):
    cdic = {}
    cdic.update(
            dbquery.execute('select id, name from service'))
    #print cdic
    return render_tpl(req, tpl, cdic)