billreminder r672 - in trunk: . src/lib
- From: ogmaciel svn gnome org
- To: svn-commits-list gnome org
- Subject: billreminder r672 - in trunk: . src/lib
- Date: Fri, 17 Oct 2008 15:26:27 +0000 (UTC)
Author: ogmaciel
Date: Fri Oct 17 15:26:27 2008
New Revision: 672
URL: http://svn.gnome.org/viewvc/billreminder?rev=672&view=rev
Log:
Don't try to cast a dbus.String into an int type, if catId is 'None'. Fixes Bug #556748
Modified:
trunk/ChangeLog
trunk/src/lib/dbus_actions.py
Modified: trunk/src/lib/dbus_actions.py
==============================================================================
--- trunk/src/lib/dbus_actions.py (original)
+++ trunk/src/lib/dbus_actions.py Fri Oct 17 15:26:27 2008
@@ -47,7 +47,9 @@
if 'alarm' in record.keys():
record['alarm'] = int(record['alarm'])
if 'catId' in record.keys():
- record['catId'] = int(record['catId'])
+ if record['catId'] and 'None' not in record['catId']:
+ record['catId'] = int(record['catId'])
+
return record
def get_monthly_totals(self, status, month, year):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]