From patchwork Sun Oct 1 16:15:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Iooss X-Patchwork-Id: 9979765 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 497336022E for ; Sun, 1 Oct 2017 16:16:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 301F628750 for ; Sun, 1 Oct 2017 16:16:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 24EF8288A8; Sun, 1 Oct 2017 16:16:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from uhil19pa11.eemsg.mail.mil (uhil19pa11.eemsg.mail.mil [214.24.21.84]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0CA2028750 for ; Sun, 1 Oct 2017 16:16:03 +0000 (UTC) Received: from emsm-gh1-uea10.ncsc.mil ([214.29.60.2]) by uhil19pa11.eemsg.mail.mil with ESMTP/TLS/AES256-SHA; 01 Oct 2017 16:16:03 +0000 Received: from unknown (HELO tarius.tycho.ncsc.mil) ([144.51.242.1]) by EMSM-GH1-UEA10.NCSC.MIL with ESMTP; 01 Oct 2017 16:16:02 +0000 Received: from prometheus.infosec.tycho.ncsc.mil (prometheus [192.168.25.40]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id v91GFpRu017696; Sun, 1 Oct 2017 12:15:55 -0400 Received: from tarius.tycho.ncsc.mil (tarius.infosec.tycho.ncsc.mil [144.51.242.1]) by prometheus.infosec.tycho.ncsc.mil (8.15.2/8.15.2) with ESMTP id v91GFm4i049786 for ; Sun, 1 Oct 2017 12:15:48 -0400 Received: from goalie.tycho.ncsc.mil (goalie [144.51.242.250]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id v91GFmbh017694 for ; Sun, 1 Oct 2017 12:15:48 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A1BECQDVE9FZWycbGNZcHgYMgzIoAyFDF?= =?us-ascii?q?1cnjwyObJo+EwiJVVcBAgEBAQEBAgYaFYV3BoEJUUMUGYhegVIDAQGncYQRh0+?= =?us-ascii?q?DLUeBO4FRimKFKAEEoTKCLoUwjHqCfJAalVSBOYFlMiEyhRsMeYFQdIlPAQEB?= X-IPAS-Result: =?us-ascii?q?A1BECQDVE9FZWycbGNZcHgYMgzIoAyFDF1cnjwyObJo+Ewi?= =?us-ascii?q?JVVcBAgEBAQEBAgYaFYV3BoEJUUMUGYhegVIDAQGncYQRh0+DLUeBO4FRimKFK?= =?us-ascii?q?AEEoTKCLoUwjHqCfJAalVSBOYFlMiEyhRsMeYFQdIlPAQEB?= X-IronPort-AV: E=Sophos;i="5.42,464,1500955200"; d="scan'208";a="68894" Received: from emsm-gh1-uea10.ncsc.mil ([214.29.60.34]) by goalie.tycho.ncsc.mil with ESMTP; 01 Oct 2017 12:15:45 -0400 Received: from upbd19pa06.eemsg.mail.mil ([214.24.27.39]) by EMSM-GH1-UEA10.NCSC.MIL with ESMTP; 01 Oct 2017 16:15:44 +0000 X-EEMSG-check-005: 0 X-EEMSG-check-006: 000-001;e0442e92-ade4-4a37-ab3b-52bfdbd87b55 Authentication-Results: UPDC3CPA04.eemsg.mail.mil; dkim=neutral (message not signed) header.i=none X-EEMSG-check-008: 191754424|UPDC3CPA04_EEMSG_MP20.csd.disa.mil X-EEMSG-SBRS: 3.5 X-EEMSG-ORIG-IP: 129.104.30.34 X-EEMSG-check-002: true X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0CtAQD5ENFZhyIeaIFcHQEFAQsBgzKBD24njwyObJo+EwiJVUMUAQIBAQEBAQEBEwEBAQoLCQgoL4UZBoEJUVcZiF6BUgQBp3eEEYdPgy1HgTuBUYpihSgBBKEygi6FMIx6gnyQGpVUgTk2gS8yITKFGwyCSXSJTwEBAQ X-IPAS-Result: A0CtAQD5ENFZhyIeaIFcHQEFAQsBgzKBD24njwyObJo+EwiJVUMUAQIBAQEBAQEBEwEBAQoLCQgoL4UZBoEJUVcZiF6BUgQBp3eEEYdPgy1HgTuBUYpihSgBBKEygi6FMIx6gnyQGpVUgTk2gS8yITKFGwyCSXSJTwEBAQ Received: from mx1.polytechnique.org ([129.104.30.34]) by UPDC3CPA04.eemsg.mail.mil with ESMTP; 01 Oct 2017 16:15:43 +0000 Received: from localhost.localdomain (32.206.133.77.rev.sfr.net [77.133.206.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTPSA id 0C9BD561238 for ; Sun, 1 Oct 2017 18:15:40 +0200 (CEST) From: Nicolas Iooss To: selinux@tycho.nsa.gov Date: Sun, 1 Oct 2017 18:15:16 +0200 Message-Id: <20171001161517.16407-3-nicolas.iooss@m4x.org> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20171001161517.16407-1-nicolas.iooss@m4x.org> References: <20171001161517.16407-1-nicolas.iooss@m4x.org> X-AV-Checked: ClamAV using ClamSMTP at svoboda.polytechnique.org (Sun Oct 1 18:15:40 2017 +0200 (CEST)) X-Org-Mail: nicolas.iooss.2010@polytechnique.org Subject: [PATCH 3/4] gui: delete overridden definition of usersPage.delete() X-BeenThere: selinux@tycho.nsa.gov X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" List-Post: List-Help: Errors-To: selinux-bounces@tycho.nsa.gov Sender: "Selinux" X-Virus-Scanned: ClamAV using ClamSMTP Function delete() is defined twice in class usersPage and the first one invoke semanagePage.delete(), which does not exist. Signed-off-by: Nicolas Iooss --- gui/usersPage.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gui/usersPage.py b/gui/usersPage.py index 9d09bda2171f..26794ed5c3f3 100644 --- a/gui/usersPage.py +++ b/gui/usersPage.py @@ -91,10 +91,6 @@ class usersPage(semanagePage): self.store.set_value(iter, 2, dict[k][3]) self.view.get_selection().select_path((0,)) - def delete(self): - if semanagePage.delete(self) == Gtk.ResponseType.NO: - return None - def dialogInit(self): store, iter = self.view.get_selection().get_selected() self.selinuxUserEntry.set_text(store.get_value(iter, 0))