[node-patches] Change in ovirt-node[master]: Hide example pages

fabiand at fedoraproject.org fabiand at fedoraproject.org
Tue Dec 11 20:09:36 UTC 2012


Fabian Deutsch has uploaded a new change for review.

Change subject: Hide example pages
......................................................................

Hide example pages

Change-Id: I17e16295715175cf265dddd33bc020c0a1ca1a2f
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M scripts/tui/src/ovirt/node/plugins/example.py
M scripts/tui/src/ovirt/node/plugins/features.py
M scripts/tui/src/ovirt/node/plugins/usage.py
3 files changed, 7 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/03/9903/1

diff --git a/scripts/tui/src/ovirt/node/plugins/example.py b/scripts/tui/src/ovirt/node/plugins/example.py
index fe2812b..d438d89 100644
--- a/scripts/tui/src/ovirt/node/plugins/example.py
+++ b/scripts/tui/src/ovirt/node/plugins/example.py
@@ -62,6 +62,9 @@
                 "foo.password": nospace
             }
 
+    def has_ui(self):
+        return False
+
     def ui_content(self):
         """Describes the UI this plugin requires
         This is an ordered list of (path, widget) tuples.
diff --git a/scripts/tui/src/ovirt/node/plugins/features.py b/scripts/tui/src/ovirt/node/plugins/features.py
index a022a9f..2a17965 100644
--- a/scripts/tui/src/ovirt/node/plugins/features.py
+++ b/scripts/tui/src/ovirt/node/plugins/features.py
@@ -43,6 +43,8 @@
 
     rank = lambda self: 999
 
+    has_ui = lambda self: False
+
     def ui_content(self):
         widgets = [
             ("features.info", ovirt.node.ui.Label(features))
diff --git a/scripts/tui/src/ovirt/node/plugins/usage.py b/scripts/tui/src/ovirt/node/plugins/usage.py
index 3da8cdd..b2513e6 100644
--- a/scripts/tui/src/ovirt/node/plugins/usage.py
+++ b/scripts/tui/src/ovirt/node/plugins/usage.py
@@ -45,6 +45,8 @@
 
     rank = lambda self: 999
 
+    has_ui = lambda self: False
+
     def ui_content(self):
         widgets = [
             ("usage.info", ovirt.node.ui.Label(usage))


--
To view, visit http://gerrit.ovirt.org/9903
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I17e16295715175cf265dddd33bc020c0a1ca1a2f
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at fedoraproject.org>



More information about the node-patches mailing list