diff src/core/sat_main.py @ 484:23cbdf0a0777

core: presence status + last resource refactored and kept in entitiesCache in memory.py, profile cache is purged on disconnection
author Goffi <goffi@goffi.org>
date Wed, 15 Aug 2012 15:50:46 +0200
parents 2a072735e459
children f36c705a5310
line wrap: on
line diff
--- a/src/core/sat_main.py	Thu Aug 02 01:08:51 2012 +0200
+++ b/src/core/sat_main.py	Wed Aug 15 15:50:46 2012 +0200
@@ -256,6 +256,7 @@
 
             return current.getConnectionDeferred()
 
+        self.memory.startProfileSession(profile)
         return self.memory.loadIndividualParams(profile).addCallback(afterMemoryInit)
 
     def disconnect(self, profile_key):
@@ -290,7 +291,7 @@
             del self.profiles[profile]
         except KeyError:
             error(_("Trying to remove reference to a client not referenced"))
-        self.memory.purgeProfile(profile)
+        self.memory.purgeProfileSession(profile)
 
     def startService(self):
         info("Salut à toi ô mon frère !")