diff --git a/ahserver/__init__.py b/ahserver/__init__.py old mode 100755 new mode 100644 diff --git a/ahserver/auth_api.py b/ahserver/auth_api.py old mode 100755 new mode 100644 diff --git a/ahserver/baseProcessor.py b/ahserver/baseProcessor.py old mode 100755 new mode 100644 diff --git a/ahserver/configuredServer.py b/ahserver/configuredServer.py old mode 100755 new mode 100644 diff --git a/ahserver/dbadmin.py b/ahserver/dbadmin.py old mode 100755 new mode 100644 diff --git a/ahserver/dsProcessor.py b/ahserver/dsProcessor.py old mode 100755 new mode 100644 diff --git a/ahserver/error.py b/ahserver/error.py old mode 100755 new mode 100644 diff --git a/ahserver/filedownload.py b/ahserver/filedownload.py old mode 100755 new mode 100644 diff --git a/ahserver/filestorage.py b/ahserver/filestorage.py old mode 100755 new mode 100644 index d7f05e3..b2854df --- a/ahserver/filestorage.py +++ b/ahserver/filestorage.py @@ -88,6 +88,10 @@ class FileStorage: p = os.path.abspath(os.path.join(self.root,path)) return p + def webpath(self, path): + if path.startswith(self.root): + return path[len(self.root):] + def _name2path(self,name, userid=None): name = os.path.basename(name) paths=[191,193,197,97] diff --git a/ahserver/functionProcessor.py b/ahserver/functionProcessor.py old mode 100755 new mode 100644 diff --git a/ahserver/globalEnv.py b/ahserver/globalEnv.py old mode 100755 new mode 100644 diff --git a/ahserver/llmProcessor.py b/ahserver/llmProcessor.py old mode 100755 new mode 100644 diff --git a/ahserver/myTE.py b/ahserver/myTE.py old mode 100755 new mode 100644 diff --git a/ahserver/p2p_middleware.py b/ahserver/p2p_middleware.py old mode 100755 new mode 100644 diff --git a/ahserver/processorResource.py b/ahserver/processorResource.py old mode 100755 new mode 100644 diff --git a/ahserver/proxyProcessor.py b/ahserver/proxyProcessor.py old mode 100755 new mode 100644 diff --git a/ahserver/restful.py b/ahserver/restful.py old mode 100755 new mode 100644 diff --git a/ahserver/serverenv.py b/ahserver/serverenv.py old mode 100755 new mode 100644 diff --git a/ahserver/sqldsProcessor.py b/ahserver/sqldsProcessor.py old mode 100755 new mode 100644 diff --git a/ahserver/uriop.py b/ahserver/uriop.py old mode 100755 new mode 100644 diff --git a/ahserver/url2file.py b/ahserver/url2file.py old mode 100755 new mode 100644 diff --git a/ahserver/utils.py b/ahserver/utils.py old mode 100755 new mode 100644 diff --git a/ahserver/version.py b/ahserver/version.py old mode 100755 new mode 100644 diff --git a/ahserver/websocketProcessor.py b/ahserver/websocketProcessor.py old mode 100755 new mode 100644 diff --git a/ahserver/xlsxData.py b/ahserver/xlsxData.py old mode 100755 new mode 100644 diff --git a/ahserver/xlsxdsProcessor.py b/ahserver/xlsxdsProcessor.py old mode 100755 new mode 100644