master
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 100644 → 100755
View File

0
ahserver/auth_api.py 100644 → 100755
View File

0
ahserver/baseProcessor.py 100644 → 100755
View File

0
ahserver/configuredServer.py 100644 → 100755
View File

0
ahserver/dbadmin.py 100644 → 100755
View File

0
ahserver/dsProcessor.py 100644 → 100755
View File

0
ahserver/error.py 100644 → 100755
View File

0
ahserver/filedownload.py 100644 → 100755
View File

0
ahserver/filestorage.py 100644 → 100755
View File

0
ahserver/functionProcessor.py 100644 → 100755
View File

0
ahserver/globalEnv.py 100644 → 100755
View File

0
ahserver/myTE.py 100644 → 100755
View File

0
ahserver/p2p_middleware.py 100644 → 100755
View File

11
ahserver/processorResource.py 100644 → 100755
View File

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

0
ahserver/proxyProcessor.py 100644 → 100755
View File

0
ahserver/restful.py 100644 → 100755
View File

0
ahserver/serverenv.py 100644 → 100755
View File

0
ahserver/sqldsProcessor.py 100644 → 100755
View File

0
ahserver/uriop.py 100644 → 100755
View File

0
ahserver/url2file.py 100644 → 100755
View File

0
ahserver/utils.py 100644 → 100755
View File

0
ahserver/version.py 100644 → 100755
View File

0
ahserver/websocketProcessor.py 100644 → 100755
View File

0
ahserver/xlsxData.py 100644 → 100755
View File

0
ahserver/xlsxdsProcessor.py 100644 → 100755
View File