This commit is contained in:
yumoqing 2023-05-09 14:43:34 +08:00
parent c04c324d0f
commit 75c75632ad
25 changed files with 6 additions and 5 deletions

0
ahserver/__init__.py Normal file → Executable file
View File

0
ahserver/auth_api.py Normal file → Executable file
View File

0
ahserver/baseProcessor.py Normal file → Executable file
View File

0
ahserver/configuredServer.py Normal file → Executable file
View File

0
ahserver/dbadmin.py Normal file → Executable file
View File

0
ahserver/dsProcessor.py Normal file → Executable file
View File

0
ahserver/error.py Normal file → Executable file
View File

0
ahserver/filedownload.py Normal file → Executable file
View File

0
ahserver/filestorage.py Normal file → Executable file
View File

0
ahserver/functionProcessor.py Normal file → Executable file
View File

0
ahserver/globalEnv.py Normal file → Executable file
View File

0
ahserver/myTE.py Normal file → Executable file
View File

0
ahserver/p2p_middleware.py Normal file → Executable file
View File

11
ahserver/processorResource.py Normal file → Executable file
View File

@ -313,21 +313,22 @@ class ProcessorResource(AppLogger, StaticResource,Url2File):
def url2processor(self, request, url, fpath): def url2processor(self, request, url, fpath):
print('fpath=', fpath) print('fpath=', fpath)
if fpath is None:
return None
config = getConfig() config = getConfig()
url = self.entireUrl(request, url) url = self.entireUrl(request, url)
host = '/'.join(str(request.url).split('/')[:3]) host = '/'.join(str(request.url).split('/')[:3])
path = url[len(host):].split('?')[0] path = request.path
real_path = self.abspath(request, path) real_path = self.abspath(request, path)
if real_path is None: print(f'url2processor():{path=}, {real_path=}')
return None
if config.website.startswiths: if config.website.startswiths:
for a in config.website.startswiths: for a in config.website.startswiths:
if path.startswith(a.leading): if path.startswith(a.leading):
processor = FunctionProcessor(path,self,a) processor = FunctionProcessor(path,self,a)
return processor return processor
if real_path is None:
return None
if fpath is None:
return None
for word, handlername in self.y_processors: for word, handlername in self.y_processors:
if fpath.endswith(word): if fpath.endswith(word):
Klass = getProcessor(handlername) Klass = getProcessor(handlername)

0
ahserver/proxyProcessor.py Normal file → Executable file
View File

0
ahserver/restful.py Normal file → Executable file
View File

0
ahserver/serverenv.py Normal file → Executable file
View File

0
ahserver/sqldsProcessor.py Normal file → Executable file
View File

0
ahserver/uriop.py Normal file → Executable file
View File

0
ahserver/url2file.py Normal file → Executable file
View File

0
ahserver/utils.py Normal file → Executable file
View File

0
ahserver/version.py Normal file → Executable file
View File

0
ahserver/websocketProcessor.py Normal file → Executable file
View File

0
ahserver/xlsxData.py Normal file → Executable file
View File

0
ahserver/xlsxdsProcessor.py Normal file → Executable file
View File