From 85b16445a0c8edf160ecb9518528d97ab7c35ce9 Mon Sep 17 00:00:00 2001 From: lxnay Date: Sat, 14 Mar 2009 15:37:00 +0000 Subject: [PATCH] Entropy/Entropy Notification Applet/Spritz: - when subclassing entropy.client.interfaces.Client reimplement init_singleton instead of __init__ because the former is now a Singleton git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3163 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- entropy-notification-applet/src/etp_applet.py | 4 ++-- spritz/src/entropyapi.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/entropy-notification-applet/src/etp_applet.py b/entropy-notification-applet/src/etp_applet.py index 28046a25c..6009e876e 100644 --- a/entropy-notification-applet/src/etp_applet.py +++ b/entropy-notification-applet/src/etp_applet.py @@ -44,8 +44,8 @@ from entropy.const import etpConst, etpRepositories class Entropy(EquoInterface): - def __init__(self, appletInterface): - EquoInterface.__init__(self, noclientdb = True) + def init_singleton(self, appletInterface): + EquoInterface.init_singleton(self, noclientdb = True) self.connect_progress_objects(appletInterface) self.nocolor() diff --git a/spritz/src/entropyapi.py b/spritz/src/entropyapi.py index 56b15fa0d..32fee41dc 100644 --- a/spritz/src/entropyapi.py +++ b/spritz/src/entropyapi.py @@ -226,8 +226,8 @@ class QueueExecutor: class Equo(EquoInterface): - def __init__(self, *args, **kwargs): - EquoInterface.__init__(self, *args, **kwargs) + def init_singleton(self, *args, **kwargs): + EquoInterface.init_singleton(self, *args, **kwargs) self.progressLog = None self.output = None self.progress = None