[PATCH 1/2] Use only self.data in TUI timezone spoke's status

Martin Sivak msivak at redhat.com
Thu Mar 21 15:47:22 UTC 2013


---
 pyanaconda/ui/tui/spokes/time.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/pyanaconda/ui/tui/spokes/time.py b/pyanaconda/ui/tui/spokes/time.py
index b9d5a26..98b9dc7 100644
--- a/pyanaconda/ui/tui/spokes/time.py
+++ b/pyanaconda/ui/tui/spokes/time.py
@@ -46,7 +46,7 @@ class TimeZoneSpoke(FirstbootSpokeMixIn, NormalTUISpoke):
 
     @property
     def completed(self):
-        return bool(self.data.timezone.timezone or self._selection)
+        return bool(self.data.timezone.timezone)
 
     @property
     def mandatory(self):
@@ -56,8 +56,6 @@ class TimeZoneSpoke(FirstbootSpokeMixIn, NormalTUISpoke):
     def status(self):
         if self.data.timezone.timezone:
             return _("%s timezone") % self.data.timezone.timezone
-        elif self._selection:
-            return _("%s timezone") % self._selection
         else:
             return _("Timezone is not set.")
 
-- 
1.7.11.7



More information about the anaconda-patches mailing list