/[smeserver]/cdrom.image/sme9/updates/textw/timezone_text.py
ViewVC logotype

Diff of /cdrom.image/sme9/updates/textw/timezone_text.py

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by charliebrady, Tue Jul 30 21:49:21 2013 UTC Revision 1.2 by charliebrady, Tue Jul 30 21:50:16 2013 UTC
# Line 43  class TimezoneWindow: Line 43  class TimezoneWindow:
43    
44      def updateSysClock(self):      def updateSysClock(self):
45          args = ["--hctosys"]          args = ["--hctosys"]
46          if self.c.selected():          args.append("--utc")
             args.append("--utc")  
47    
48          iutil.execWithRedirect("hwclock", args)          iutil.execWithRedirect("hwclock", args)
49          self.g.setTimer(500)          self.g.setTimer(500)
# Line 89  class TimezoneWindow: Line 88  class TimezoneWindow:
88          self.l.setCurrent(default.replace("_", " "))          self.l.setCurrent(default.replace("_", " "))
89  #       self.l.setCallback(self.updateClock)  #       self.l.setCallback(self.updateClock)
90                    
         self.c = Checkbox(_("System clock uses UTC"), isOn = asUtc)  
 #       self.c.setCallback(self.updateSysClock)  
   
91          self.g = GridFormHelp(screen, _("Time Zone Selection"), "timezone",          self.g = GridFormHelp(screen, _("Time Zone Selection"), "timezone",
92                                1, 5)                                1, 5)
93          self.g.add(t, 0, 0)          self.g.add(t, 0, 0)
94  #       self.g.add(self.label, 0, 1, padding = (0, 1, 0, 0), anchorLeft = 1)  #       self.g.add(self.label, 0, 1, padding = (0, 1, 0, 0), anchorLeft = 1)
         self.g.add(self.c, 0, 2, padding = (0, 1, 0, 1), anchorLeft = 1)  
95          self.g.add(self.l, 0, 3, padding = (0, 0, 0, 1))          self.g.add(self.l, 0, 3, padding = (0, 0, 0, 1))
96          self.g.add(bb, 0, 4, growx = 1)          self.g.add(bb, 0, 4, growx = 1)
97    
# Line 124  class TimezoneWindow: Line 119  class TimezoneWindow:
119                  break                  break
120    
121          screen.popWindow()          screen.popWindow()
122          anaconda.id.timezone.setTimezoneInfo(self.l.current().replace(" ", "_"), asUtc = self.c.selected())          anaconda.id.timezone.setTimezoneInfo(self.l.current().replace(" ", "_"), asUtc = 1)
123    
124          return INSTALL_OK          return INSTALL_OK
125    


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed