comparison src/core/sat_main.py @ 416:32dc8b18c2ae

core: param loading/purging on profile connection/disconnection - fixed default value in .*getParam.*
author Goffi <goffi@goffi.org>
date Tue, 01 Nov 2011 22:59:15 +0100
parents dd4caab17008
children acd908528ef7
comparison
equal deleted inserted replaced
415:3348331e0f09 416:32dc8b18c2ae
266 return 266 return
267 profile = self.memory.getProfileName(profile_key) 267 profile = self.memory.getProfileName(profile_key)
268 info(_("Disconnecting...")) 268 info(_("Disconnecting..."))
269 self.profiles[profile].stopService() 269 self.profiles[profile].stopService()
270 270
271 def purgeClient(self, profile):
272 """Remove reference to a profile client and purge cache
273 the garbage collector can then free the memory"""
274 try:
275 del self.profiles[profile]
276 except KeyError:
277 error(_("Trying to remove reference to a client not referenced"))
278 self.memory.purgeProfile(profile)
279
271 def startService(self): 280 def startService(self):
272 info("Salut à toi ô mon frère !") 281 info("Salut à toi ô mon frère !")
273 #TODO: manage autoconnect 282 #TODO: manage autoconnect
274 #self.connect() 283 #self.connect()
275 284