core: removed former parameters files data location constants
This commit is contained in:
parent
be79efe07c
commit
ff787e5ca4
1 changed files with 0 additions and 6 deletions
|
|
@ -34,7 +34,6 @@ from sat.core.default_config import default_config
|
||||||
from sat.tools.sqlite import SqliteStorage
|
from sat.tools.sqlite import SqliteStorage
|
||||||
|
|
||||||
SAVEFILE_PARAM_XML="/param" #xml parameters template
|
SAVEFILE_PARAM_XML="/param" #xml parameters template
|
||||||
SAVEFILE_PARAM_DATA="/param" #individual & general parameters; _ind and _gen suffixes will be added
|
|
||||||
SAVEFILE_HISTORY="/history"
|
SAVEFILE_HISTORY="/history"
|
||||||
SAVEFILE_PRIVATE="/private" #file used to store misc values (mainly for plugins)
|
SAVEFILE_PRIVATE="/private" #file used to store misc values (mainly for plugins)
|
||||||
SAVEFILE_DATABASE="/sat.db"
|
SAVEFILE_DATABASE="/sat.db"
|
||||||
|
|
@ -113,7 +112,6 @@ class Param():
|
||||||
self.params = {}
|
self.params = {}
|
||||||
self.params_gen = {}
|
self.params_gen = {}
|
||||||
host.set_const('savefile_param_xml', SAVEFILE_PARAM_XML)
|
host.set_const('savefile_param_xml', SAVEFILE_PARAM_XML)
|
||||||
host.set_const('savefile_param_data', SAVEFILE_PARAM_DATA)
|
|
||||||
host.registerGeneralCB("registerNewAccount", host.registerNewAccountCB)
|
host.registerGeneralCB("registerNewAccount", host.registerNewAccountCB)
|
||||||
|
|
||||||
def createProfile(self, name):
|
def createProfile(self, name):
|
||||||
|
|
@ -511,8 +509,6 @@ class Memory:
|
||||||
"""Load parameters and all memory things from file/db"""
|
"""Load parameters and all memory things from file/db"""
|
||||||
param_file_xml = os.path.expanduser(self.getConfig('','local_dir')+
|
param_file_xml = os.path.expanduser(self.getConfig('','local_dir')+
|
||||||
self.host.get_const('savefile_param_xml'))
|
self.host.get_const('savefile_param_xml'))
|
||||||
param_file_data = os.path.expanduser(self.getConfig('','local_dir')+
|
|
||||||
self.host.get_const('savefile_param_data'))
|
|
||||||
history_file = os.path.expanduser(self.getConfig('','local_dir')+
|
history_file = os.path.expanduser(self.getConfig('','local_dir')+
|
||||||
self.host.get_const('savefile_history'))
|
self.host.get_const('savefile_history'))
|
||||||
private_file = os.path.expanduser(self.getConfig('','local_dir')+
|
private_file = os.path.expanduser(self.getConfig('','local_dir')+
|
||||||
|
|
@ -570,8 +566,6 @@ class Memory:
|
||||||
#TODO: need to encrypt files (at least passwords !) and set permissions
|
#TODO: need to encrypt files (at least passwords !) and set permissions
|
||||||
param_file_xml = os.path.expanduser(self.getConfig('','local_dir')+
|
param_file_xml = os.path.expanduser(self.getConfig('','local_dir')+
|
||||||
self.host.get_const('savefile_param_xml'))
|
self.host.get_const('savefile_param_xml'))
|
||||||
param_file_data = os.path.expanduser(self.getConfig('','local_dir')+
|
|
||||||
self.host.get_const('savefile_param_data'))
|
|
||||||
history_file = os.path.expanduser(self.getConfig('','local_dir')+
|
history_file = os.path.expanduser(self.getConfig('','local_dir')+
|
||||||
self.host.get_const('savefile_history'))
|
self.host.get_const('savefile_history'))
|
||||||
private_file = os.path.expanduser(self.getConfig('','local_dir')+
|
private_file = os.path.expanduser(self.getConfig('','local_dir')+
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue