This commit is contained in:
yumoqing 2024-11-25 17:22:50 +08:00
parent 6eda9a96c9
commit f74c3726e9

View File

@ -166,10 +166,15 @@ def file_download(request,path,name,coding='utf8'):
request.write(b) request.write(b)
request.finish() request.finish()
def paramify(data, ns):
ac = ArgsConvert('${', '}$')
return ac.convert(data, ns)
def initEnv(): def initEnv():
pool = DBPools() pool = DBPools()
g = ServerEnv() g = ServerEnv()
set_builtins() set_builtins()
g.paramify = paramify
g.configValue = configValue g.configValue = configValue
g.visualcoding = visualcoding g.visualcoding = visualcoding
g.uriop = URIOp g.uriop = URIOp