This commit is contained in:
yumoqing 2020-06-07 22:58:19 +08:00
parent 22b766f5b8
commit a942e4897c

View File

@ -95,16 +95,6 @@ def appname():
except: except:
return "test app" 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): def configValue(ks):
config = getConfig() config = getConfig()
try: try:
@ -163,7 +153,6 @@ def initEnv():
g.getTableForignKeys = pool.getTableForignKeys g.getTableForignKeys = pool.getTableForignKeys
g.folderInfo = folderInfo g.folderInfo = folderInfo
g.abspath = abspath g.abspath = abspath
g.request2ns = request2ns
g.data2xlsx = data2xlsx g.data2xlsx = data2xlsx
g.xlsxdata = XLSXData g.xlsxdata = XLSXData
g.openfile = openfile g.openfile = openfile