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