[billreminder] Make sure to call actions using a keyworded, variable-length argument list.



commit 14b0284a2b564d948cb9f5a818eb91951ee66cd5
Author: Og B. Maciel <ogmaciel gnome org>
Date:   Thu Oct 1 22:22:18 2009 -0400

    Make sure to call actions using a keyworded, variable-length argument list.

 src/gui/maindialog.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gui/maindialog.py b/src/gui/maindialog.py
index 977b6b8..1317a9e 100644
--- a/src/gui/maindialog.py
+++ b/src/gui/maindialog.py
@@ -212,7 +212,7 @@ class MainDialog:
             b_id = model_[index][0]
 
             try:
-                records = self.actions.get_bills({'id': b_id})
+                records = self.actions.get_bills(id=b_id)
                 self.currentrecord = records[0]
             except Exception, e:
                 print str(e)
@@ -256,7 +256,7 @@ class MainDialog:
         first = self.timeline.start_date
         last = self.timeline.end_date
         # Get list of records
-        records = self.actions.get_interval_bills(status, first, last)
+        records = self.actions.get_interval_bills(first, last, status)
 
         # Populate treeview
         self.populate_view(records)
@@ -303,7 +303,7 @@ class MainDialog:
 
     def _populate_chart(self, status, start, end):
         chartdata = []
-        #records = self.actions.get_interval_totals(status, start, end)
+        #records = self.actions.get_interval_totals(start, end, status)
         records = []
         for rec in records:
             chartdata.append([field for field in rec])
@@ -606,7 +606,7 @@ class MainDialog:
         # TODO: Improve tooltip
         # TODO: Improve cache
         if not date in self._bullet_cache.keys():
-            self._bullet_cache[date] = self.actions.get_bills({'dueDate': date})
+            self._bullet_cache[date] = self.actions.get_bills(dueDate=date)
 
         if self._bullet_cache[date]:
             amount = 0



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