[Ocfs2-tools-commits] manish commits r745 - trunk/ocfs2console/ocfs2interface

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Sun Mar 27 16:43:16 CST 2005


Author: manish
Date: 2005-03-27 16:43:14 -0600 (Sun, 27 Mar 2005)
New Revision: 745

Removed:
   trunk/ocfs2console/ocfs2interface/nodemap.py
Modified:
   trunk/ocfs2console/ocfs2interface/Makefile
   trunk/ocfs2console/ocfs2interface/console.py
Log:
Remove useless nodemap tab


Modified: trunk/ocfs2console/ocfs2interface/Makefile
===================================================================
--- trunk/ocfs2console/ocfs2interface/Makefile	2005-03-27 22:32:19 UTC (rev 744)
+++ trunk/ocfs2console/ocfs2interface/Makefile	2005-03-27 22:43:14 UTC (rev 745)
@@ -66,7 +66,6 @@
 	ipwidget.py \
 	mount.py \
 	menu.py \
-	nodemap.py \
 	partitionview.py \
 	process.py \
 	toolbar.py \

Modified: trunk/ocfs2console/ocfs2interface/console.py
===================================================================
--- trunk/ocfs2console/ocfs2interface/console.py	2005-03-27 22:32:19 UTC (rev 744)
+++ trunk/ocfs2console/ocfs2interface/console.py	2005-03-27 22:43:14 UTC (rev 745)
@@ -27,7 +27,6 @@
 from format import format_partition
 from tune import tune_label, tune_nodes
 from general import General
-from nodemap import NodeMap
 from browser import Browser
 from clconfig import cluster_configurator
 from fsck import fsck_volume
@@ -35,7 +34,6 @@
 info_items = (
     ('General',          General),
     ('File Listing',     Browser),
-#    ('Configured Nodes', NodeMap),
 )
 
 class Console(gtk.Window):

Deleted: trunk/ocfs2console/ocfs2interface/nodemap.py
===================================================================
--- trunk/ocfs2console/ocfs2interface/nodemap.py	2005-03-27 22:32:19 UTC (rev 744)
+++ trunk/ocfs2console/ocfs2interface/nodemap.py	2005-03-27 22:43:14 UTC (rev 745)
@@ -1,84 +0,0 @@
-# OCFS2Console - GUI frontend for OCFS2 management and debugging
-# Copyright (C) 2002, 2005 Oracle.  All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 021110-1307, USA.
-
-import gtk
-
-import ocfs2
-
-COLUMN_SLOT = 0
-COLUMN_NAME = 1
-COLUMN_IP = 2
-COLUMN_PORT = 3
-COLUMN_UUID = 4
-
-class NodeMap:
-    def __init__(self, device=None):
-        self.device = device
-
-        info = self.info()
-
-        if info:
-            self.widget = gtk.ScrolledWindow()
-            self.widget.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
-            self.widget.add(info)
-        else:
-            self.widget = gtk.Label('Invalid device')
-
-    def info(self):
-        if not self.device:
-            return None
-
-        store = gtk.ListStore(int, str, str, int, str)
-
-        tv = gtk.TreeView(store)
-
-        tv.insert_column_with_attributes(-1, 'Slot #',
-                                         gtk.CellRendererText(),
-                                         text=COLUMN_SLOT)
-        tv.insert_column_with_attributes(-1, 'Node Name',
-                                         gtk.CellRendererText(),
-                                         text=COLUMN_NAME)
-        tv.insert_column_with_attributes(-1, 'IP Address',
-                                         gtk.CellRendererText(),
-                                         text=COLUMN_IP)
-        tv.insert_column_with_attributes(-1, 'Port',
-                                         gtk.CellRendererText(),
-                                         text=COLUMN_PORT)
-        tv.insert_column_with_attributes(-1, 'UUID',
-                                         gtk.CellRendererText(),
-                                         text=COLUMN_UUID)
-
-        return tv
-
-def main():
-    import sys
-
-    def dummy(*args):
-        gtk.main_quit()
-
-    window = gtk.Window()
-    window.connect('delete_event', dummy)
-
-    nodemap = NodeMap(sys.argv[1]).widget
-    window.add(nodemap)
-
-    window.show_all()
-
-    gtk.main()
-
-if __name__ == '__main__':
-    main()



More information about the Ocfs2-tools-commits mailing list