From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 6F8A81381F3 for ; Fri, 19 Jul 2013 18:00:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 068C6E094C; Fri, 19 Jul 2013 18:00:44 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2E0CAE0944 for ; Fri, 19 Jul 2013 18:00:43 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3750D33E8EF for ; Fri, 19 Jul 2013 18:00:42 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 9933BE5465 for ; Fri, 19 Jul 2013 18:00:39 +0000 (UTC) From: "André Erdmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "André Erdmann" Message-ID: <1374255858.01a383d00def3f9f5bcaccd21167187cbf61288e.dywi@gentoo> Subject: [gentoo-commits] proj/R_overlay:gsoc13/next commit in: roverlay/interface/ X-VCS-Repository: proj/R_overlay X-VCS-Files: roverlay/interface/main.py roverlay/interface/root.py X-VCS-Directories: roverlay/interface/ X-VCS-Committer: dywi X-VCS-Committer-Name: André Erdmann X-VCS-Revision: 01a383d00def3f9f5bcaccd21167187cbf61288e X-VCS-Branch: gsoc13/next Date: Fri, 19 Jul 2013 18:00:39 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 89251c7b-54a8-4946-8902-4ee0463caa5a X-Archives-Hash: 613a2cb7e419bf6b3121fb9fba668c08 Message-ID: <20130719180039.vx69fPyOVWZwjfvKhXTh-_SIWsJemgJKxMHHHygIfsw@z> commit: 01a383d00def3f9f5bcaccd21167187cbf61288e Author: André Erdmann mailerd de> AuthorDate: Fri Jul 19 17:44:18 2013 +0000 Commit: André Erdmann mailerd de> CommitDate: Fri Jul 19 17:44:18 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=01a383d0 roverlay/interface/main: accept config in setup() --- roverlay/interface/main.py | 7 ++----- roverlay/interface/root.py | 5 +++-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/roverlay/interface/main.py b/roverlay/interface/main.py index dfa89e2..395bd99 100644 --- a/roverlay/interface/main.py +++ b/roverlay/interface/main.py @@ -18,11 +18,8 @@ class MainInterface ( roverlay.interface.root.RootInterface ): self.setup ( *args, **kwargs ) # --- end of __init__ (...) --- - def setup ( self, config_file, *args, **kw ): - self.config_file = config_file - super ( MainInterface, self ).__init__ ( - config_file=config_file, *args, **kw - ) + def setup ( self, *args, **kw ): + super ( MainInterface, self ).__init__ ( *args, **kw ) self.__class__.register_interface ( "depres", roverlay.interface.depres.DepresInterface ) diff --git a/roverlay/interface/root.py b/roverlay/interface/root.py index c571eea..a06663b 100644 --- a/roverlay/interface/root.py +++ b/roverlay/interface/root.py @@ -60,8 +60,9 @@ class RootInterface ( roverlay.interface.generic.RoverlayInterface ): Defaults to None. """ super ( RootInterface, self ).__init__() - self.parent = None - self.err_queue = roverlay.errorqueue.ErrorQueue() + self.parent = None + self.err_queue = roverlay.errorqueue.ErrorQueue() + self.config_file = config_file if getattr ( self, 'config', None ): pass