From cdfa67f85a0122ea237b2f5424f1d0c478e61122 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Mon, 6 Apr 2009 13:35:56 +0200 Subject: [PATCH] entropy.core.SystemSettings: new method "disconnect_entropy", removes the Entropy instance from database --- libraries/entropy/core.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libraries/entropy/core.py b/libraries/entropy/core.py index d20a7e1ae..ba3b1f0ff 100644 --- a/libraries/entropy/core.py +++ b/libraries/entropy/core.py @@ -152,6 +152,14 @@ class SystemSettings(Singleton): self.Entropy = entropy_instance self.__scan() # do this again to re-fill settings + def disconnect_entropy(self): + """ + Remove an Entropy (client/server) instance to + this Singleton. + """ + self.Entropy = None + self.__scan() + def __setup_const(self): """