From 974322c7af077150f34e0adea46d7ed8a0f6b2da Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Mon, 9 Nov 2009 15:57:19 +0100 Subject: [PATCH] [entropy.db] remove OutputInterface arg from EntropyRepository constructor (use plugins now) --- libraries/entropy/db.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/libraries/entropy/db.py b/libraries/entropy/db.py index f76af3cd8..4d480efad 100644 --- a/libraries/entropy/db.py +++ b/libraries/entropy/db.py @@ -526,7 +526,7 @@ class EntropyRepository(EntropyRepositoryPluginStore, TextInterface): import threading def __init__(self, readOnly = False, dbFile = None, clientDatabase = False, xcache = False, dbname = 'etpdb:', - indexing = True, OutputInterface = None, skipChecks = False): + indexing = True, skipChecks = False): """ EntropyRepository constructor. @@ -544,9 +544,6 @@ class EntropyRepository(EntropyRepositoryPluginStore, TextInterface): @type dbname: string @keyword indexing: enable database indexes @type indexing: bool - @keyword OutputInterface: interface used to communicate with the user. - must inherit entropy.output.TextInterface - @type OutputInterface: entropy.output.TextInterface based instance @keyword skipChecks: if True, skip integrity checks @type skipChecks: bool """ @@ -570,10 +567,6 @@ class EntropyRepository(EntropyRepositoryPluginStore, TextInterface): self.__write_mutex = self.threading.RLock() self.dbapi2 = dbapi2 - # setup output interface - if OutputInterface is not None: - self.updateProgress = OutputInterface.updateProgress - self.askQuestion = OutputInterface.askQuestion # setup service interface self.readOnly = readOnly self.clientDatabase = clientDatabase