From f74c3726e90931c646da3dd0b8e8c0171aa3969b Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 25 Nov 2024 17:22:50 +0800 Subject: [PATCH] bugfix --- ahserver/globalEnv.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ahserver/globalEnv.py b/ahserver/globalEnv.py index 09e4c98..08c4f86 100644 --- a/ahserver/globalEnv.py +++ b/ahserver/globalEnv.py @@ -166,10 +166,15 @@ def file_download(request,path,name,coding='utf8'): request.write(b) request.finish() +def paramify(data, ns): + ac = ArgsConvert('${', '}$') + return ac.convert(data, ns) + def initEnv(): pool = DBPools() g = ServerEnv() set_builtins() + g.paramify = paramify g.configValue = configValue g.visualcoding = visualcoding g.uriop = URIOp