use new base_path Setting, but have not tested use of absolute paths instead of relative paths, also need better tooltips for the paths -- AND, still have odd trailing slash due to SymLinkName, etc. being too complex

This commit is contained in:
2021-09-05 21:58:54 +10:00
parent 7c192b5d66
commit a64b651118
6 changed files with 158 additions and 55 deletions

View File

@@ -1,4 +1,4 @@
from settings import Settings
from settings import Settings, SettingsRBPath, SettingsIPath, SettingsSPath
from shared import PA
################################################################################
@@ -23,15 +23,16 @@ class Options(PA):
if 'files_sp' in url:
self.noo="A to Z"
self.path_type = 'Storage'
self.paths = settings.storage_path.split("#")
self.paths = SettingsSPath()
elif 'files_rbp' in url:
self.path_type = 'Bin'
self.paths = settings.recycle_bin_path.split("#")
self.paths = []
self.paths.append(SettingsRBPath())
else:
self.folders=False
self.path_type = 'Import'
self.cwd='static/Import'
self.paths = settings.import_path.split("#")
self.paths = SettingsIPath()
self.cwd='static/' + self.path_type
self.root=self.cwd