From a942e4897cb1f50304e9c38b606d1f83cc8bcbd9 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 7 Jun 2020 22:58:19 +0800 Subject: [PATCH] bugfix --- ahserver/globalEnv.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/ahserver/globalEnv.py b/ahserver/globalEnv.py index 9ce4fa0..d27835c 100755 --- a/ahserver/globalEnv.py +++ b/ahserver/globalEnv.py @@ -95,16 +95,6 @@ def appname(): except: return "test app" -def request2ns(request): - ret = {} - for k,v in request.args.items(): - if type(v) == type([]) and len(v) == 1: - ret[k] = v[0] - else : - ret[k] = v - ret = uObject(ret) - return ret - def configValue(ks): config = getConfig() try: @@ -163,7 +153,6 @@ def initEnv(): g.getTableForignKeys = pool.getTableForignKeys g.folderInfo = folderInfo g.abspath = abspath - g.request2ns = request2ns g.data2xlsx = data2xlsx g.xlsxdata = XLSXData g.openfile = openfile