This commit is contained in:
yumoqing 2025-04-13 17:52:43 +08:00
parent aeb29386cd
commit 04216bf6ef
2 changed files with 3 additions and 4 deletions

View File

@ -51,7 +51,3 @@ async def path_download(request, kw, *params):
rf = RegisterFunction()
rf.register('idfile', path_download)
rf.register('download', path_download)

View File

@ -39,6 +39,7 @@ from .xlsxData import XLSXData
from .uriop import URIOp
from .error import Success, Error, NeedLogin, NoPermission
from .filetest import current_fileno
from .filedownload import path_download, file_download
from .filestorage import FileStorage
from .serverenv import ServerEnv
@ -262,6 +263,8 @@ def initEnv():
g.rfexe = RegisterFunction().exe
g.stream_response = stream_response
g.webpath = webpath
g.file_download = file_download
g.path_download = path_download
def set_builtins():
all_builtins = [ i for i in dir(builtins) if not i.startswith('_')]