comparison src/memory/memory.py @ 1375:3a20312d4012

core: if we are in dev version and it's possible, repository data are now checked and added to SàT version
author Goffi <goffi@goffi.org>
date Thu, 19 Mar 2015 19:47:01 +0100
parents be3a301540c0
children c7082457d03f
comparison
equal deleted inserted replaced
1374:0befb14ecf62 1375:3a20312d4012
224 self.auth_sessions = PasswordSessions() # remember the authenticated profiles 224 self.auth_sessions = PasswordSessions() # remember the authenticated profiles
225 self.disco = Discovery(host) 225 self.disco = Discovery(host)
226 fixLocalDir(False) # XXX: tmp update code, will be removed in the future 226 fixLocalDir(False) # XXX: tmp update code, will be removed in the future
227 self.config = self.parseMainConf() 227 self.config = self.parseMainConf()
228 database_file = os.path.expanduser(os.path.join(self.getConfig('', 'local_dir'), C.SAVEFILE_DATABASE)) 228 database_file = os.path.expanduser(os.path.join(self.getConfig('', 'local_dir'), C.SAVEFILE_DATABASE))
229 self.storage = SqliteStorage(database_file, host.__version__) 229 self.storage = SqliteStorage(database_file, host.version)
230 PersistentDict.storage = self.storage 230 PersistentDict.storage = self.storage
231 self.params = Params(host, self.storage) 231 self.params = Params(host, self.storage)
232 log.info(_("Loading default params template")) 232 log.info(_("Loading default params template"))
233 self.params.load_default_params() 233 self.params.load_default_params()
234 d = self.storage.initialized.addCallback(lambda ignore: self.load()) 234 d = self.storage.initialized.addCallback(lambda ignore: self.load())