[tor-commits] [arm/release] Show all options for testing.

atagar at torproject.org atagar at torproject.org
Sun Sep 25 21:38:24 UTC 2011


commit 546ca73259d7863e3efe5e11e09c023c2790a2f6
Author: Kamran Riaz Khan <krkhan at inspirated.com>
Date:   Mon Aug 1 05:11:21 2011 +0500

    Show all options for testing.
---
 src/gui/configPanel.py |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/src/gui/configPanel.py b/src/gui/configPanel.py
index adcdcec..e66f670 100644
--- a/src/gui/configPanel.py
+++ b/src/gui/configPanel.py
@@ -86,23 +86,23 @@ class ConfigPanel(object, CliConfigPanel):
     self.builder = builder
 
     listStore = self.builder.get_object('liststore_config')
-    self._wrappedConfImportantContents = ConfContents(self.confImportantContents, listStore)
+    self._wrappedConfContents = ConfContents(self.confContents, listStore)
 
   @property
-  def confImportantContents(self):
-    if hasattr(self, '_wrappedConfImportantContents'):
-      return self._wrappedConfImportantContents.container
+  def confContents(self):
+    if hasattr(self, '_wrappedConfContents'):
+      return self._wrappedConfContents.container
     else:
       return []
 
-  @confImportantContents.setter
-  def confImportantContents(self, value):
-    if hasattr(self, '_wrappedConfImportantContents'):
-      self._wrappedConfImportantContents.empty()
+  @confContents.setter
+  def confContents(self, value):
+    if hasattr(self, '_wrappedConfContents'):
+      self._wrappedConfContents.empty()
       for entry in value:
-        self._wrappedConfImportantContents.append(entry)
+        self._wrappedConfContents.append(entry)
     else:
-      self._wrappedConfImportantContents = ConfContents(value)
+      self._wrappedConfContents = ConfContents(value)
 
   def pack_widgets(self):
     treeView = self.builder.get_object('treeview_config')
@@ -122,7 +122,7 @@ class ConfigPanel(object, CliConfigPanel):
   def on_treeview_config_row_activated(self, treeView, path, column):
     (index,) = path
 
-    entry = self._wrappedConfImportantContents[index]
+    entry = self._wrappedConfContents[index]
     configOption = entry.get(Field.OPTION)
     configType = entry.get(Field.TYPE)
     argUsage = entry.get(Field.ARG_USAGE)
@@ -157,5 +157,5 @@ class ConfigPanel(object, CliConfigPanel):
       except TorCtl.ErrorReply, err:
         gtkTools.showError(str(err))
 
-    self._wrappedConfImportantContents[index] = entry
+    self._wrappedConfContents[index] = entry
 





More information about the tor-commits mailing list