core: param loading/purging on profile connection/disconnection

- fixed default value in .*getParam.*
This commit is contained in:
Goffi 2011-11-01 22:59:15 +01:00
commit fa6d27efb4

View file

@ -268,6 +268,15 @@ class SAT(service.Service):
info(_("Disconnecting..."))
self.profiles[profile].stopService()
def purgeClient(self, profile):
"""Remove reference to a profile client and purge cache
the garbage collector can then free the memory"""
try:
del self.profiles[profile]
except KeyError:
error(_("Trying to remove reference to a client not referenced"))
self.memory.purgeProfile(profile)
def startService(self):
info("Salut à toi ô mon frère !")
#TODO: manage autoconnect