changeset 418:199cf4ebcc74

core: removed former parameters files data location constants
author Goffi <goffi@goffi.org>
date Tue, 01 Nov 2011 23:06:18 +0100
parents f1bf8b6143b7
children 6c167a2e04b8
files src/tools/memory.py
diffstat 1 files changed, 0 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/tools/memory.py	Tue Nov 01 23:04:48 2011 +0100
+++ b/src/tools/memory.py	Tue Nov 01 23:06:18 2011 +0100
@@ -34,7 +34,6 @@
 from sat.tools.sqlite import SqliteStorage
 
 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_PRIVATE="/private"  #file used to store misc values (mainly for plugins)
 SAVEFILE_DATABASE="/sat.db"
@@ -113,7 +112,6 @@
         self.params = {}
         self.params_gen = {}
         host.set_const('savefile_param_xml', SAVEFILE_PARAM_XML)
-        host.set_const('savefile_param_data', SAVEFILE_PARAM_DATA)
         host.registerGeneralCB("registerNewAccount", host.registerNewAccountCB)
 
     def createProfile(self, name):
@@ -511,8 +509,6 @@
         """Load parameters and all memory things from file/db"""
         param_file_xml = os.path.expanduser(self.getConfig('','local_dir')+
                                         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')+
                                         self.host.get_const('savefile_history'))
         private_file = os.path.expanduser(self.getConfig('','local_dir')+
@@ -570,8 +566,6 @@
         #TODO: need to encrypt files (at least passwords !) and set permissions
         param_file_xml = os.path.expanduser(self.getConfig('','local_dir')+
                                         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')+
                                         self.host.get_const('savefile_history'))
         private_file = os.path.expanduser(self.getConfig('','local_dir')+