comparison sat/memory/memory.py @ 3281:a3639d6d9643

core: replaced `sat` shell script by a python script: the backend is now launched by `sat.core.launcher`, and the script is generated during installation with a new entry point in `setup.py`.
author Goffi <goffi@goffi.org>
date Mon, 25 May 2020 15:50:01 +0200
parents 6cf4bd6972c2
children 780fb8dd07ef
comparison
equal deleted inserted replaced
3280:96b9b65b4368 3281:a3639d6d9643
233 # where main key is resource, or None for bare jid 233 # where main key is resource, or None for bare jid
234 self._key_signals = set() # key which need a signal to frontends when updated 234 self._key_signals = set() # key which need a signal to frontends when updated
235 self.subscriptions = {} 235 self.subscriptions = {}
236 self.auth_sessions = PasswordSessions() # remember the authenticated profiles 236 self.auth_sessions = PasswordSessions() # remember the authenticated profiles
237 self.disco = Discovery(host) 237 self.disco = Discovery(host)
238 # XXX: tmp update code, will be removed in the future
239 tools_config.fixLocalDir(False)
240 self.config = tools_config.parseMainConf(log_filenames=True) 238 self.config = tools_config.parseMainConf(log_filenames=True)
241 database_file = os.path.expanduser( 239 database_file = os.path.expanduser(
242 os.path.join(self.getConfig("", "local_dir"), C.SAVEFILE_DATABASE) 240 os.path.join(self.getConfig("", "local_dir"), C.SAVEFILE_DATABASE)
243 ) 241 )
244 self.storage = SqliteStorage(database_file, host.version) 242 self.storage = SqliteStorage(database_file, host.version)