changeset 278:96037ad10cff

Fix showing the total time in the project list footer
author Björn Ricks <bjoern.ricks@intevation.de>
date Fri, 12 Apr 2013 09:39:23 +0200
parents 3d6315be2251
children 2cef4ba1207a
files getan/states.py
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/getan/states.py	Fri Apr 12 09:38:34 2013 +0200
+++ b/getan/states.py	Fri Apr 12 09:39:23 2013 +0200
@@ -301,7 +301,7 @@
             if not self.break_start:
                 self.break_start = datetime.now()
             else:
-                self.view._total_time()
+                self.view.show_total_time()
                 proj = self.project
                 if proj:
                     proj.start += datetime.now() - self.break_start
@@ -358,7 +358,7 @@
         self.project = running_state.project
 
     def exit(self):
-        self.view._total_time()
+        self.view.show_total_time()
         return super(BaseTimeState, self).exit()
 
     def insert(self, key):
@@ -383,7 +383,7 @@
         self.state.sec += minutes * 60
         logger.info("AddTimeState: add %d minutes to project '%s'"
                     % (minutes, project.desc))
-        self.view._total_time()
+        self.view.show_total_time()
         self.set_next_state(self.state)
         return True
 
@@ -394,14 +394,14 @@
         minutes = safe_int(self.view.frame.get_footer().get_edit_text())
         sec = minutes * 60
         if sec > self.state.sec:
-            self.view._total_time()
+            self.view.show_total_time()
             return self.state
         project = self.project
         project.start += timedelta(minutes=minutes)
         self.state.sec -= sec
         logger.info("SubtractTimeState: subtract %d minutes from project '%s'"
                 % (minutes, project.desc))
-        self.view._total_time()
+        self.view.show_total_time()
         self.set_next_state(self.state)
         return True
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)