[billreminder] Finally hooked the timeline widget code back in to use the new db layer.



commit 27cad56479d1b128aadab85e876463b781d6e100
Author: Og B. Maciel <ogmaciel gnome org>
Date:   Fri Oct 2 09:04:16 2009 -0400

    Finally hooked the timeline widget code back in to use the new db layer.

 src/gui/maindialog.py |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)
---
diff --git a/src/gui/maindialog.py b/src/gui/maindialog.py
index 1317a9e..953c3b6 100644
--- a/src/gui/maindialog.py
+++ b/src/gui/maindialog.py
@@ -246,8 +246,8 @@ class MainDialog:
         # Update list with updated record
         status = self.gconf_client.get_int(GCONF_GUI_PATH + 'show_paid_bills')
 
-        month = self.timeline.value.month
-        year = self.timeline.value.year
+        #month = self.timeline.value.month
+        #year = self.timeline.value.year
 
         path = self.list.get_cursor()[0]
         self.list.listStore.clear()
@@ -602,7 +602,6 @@ class MainDialog:
         self.timeline.refresh()
 
     def on_timeline_cb(self, date):
-        return None
         # TODO: Improve tooltip
         # TODO: Improve cache
         if not date in self._bullet_cache.keys():
@@ -616,13 +615,13 @@ class MainDialog:
             bullet.date = date
 
             for bill in self._bullet_cache[date]:
-                paid *= bill['paid']
-                amount += bill['amountDue']
+                paid *= bill.paid
+                amount += bill.amount
                 if tooltip:
                     tooltip += '\n'
-                tooltip += bill['payee'] + '\n' + str(bill['amountDue']) 
-                if bill['notes']:
-                    tooltip += '\n' + bill['notes']
+                tooltip += bill.payee + '\n' + str(bill.amount)
+                if bill.notes:
+                    tooltip += '\n' + bill.notes
 
             bullet.amountDue = amount
             if paid:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]