r7123 - in bigboard/trunk/bigboard: . stocks/google_calendar
- From: commits mugshot org
- To: online-desktop-list gnome org
- Subject: r7123 - in bigboard/trunk/bigboard: . stocks/google_calendar
- Date: Fri, 28 Dec 2007 11:15:38 -0600 (CST)
Author: otaylor
Date: 2007-12-28 11:15:37 -0600 (Fri, 28 Dec 2007)
New Revision: 7123
Modified:
bigboard/trunk/bigboard/google_stock.py
bigboard/trunk/bigboard/stocks/google_calendar/CalendarStock.py
Log:
Fix TypeError when new accounts are added
Modified: bigboard/trunk/bigboard/google_stock.py
===================================================================
--- bigboard/trunk/bigboard/google_stock.py 2007-12-21 23:10:25 UTC (rev 7122)
+++ bigboard/trunk/bigboard/google_stock.py 2007-12-28 17:15:37 UTC (rev 7123)
@@ -28,9 +28,9 @@
accts = accounts.get_accounts()
for a in accts.get_accounts_with_kind(accounts.KIND_GOOGLE):
self.__on_account_added(a)
- id = accts.connect('account-added', self.__on_account_added)
+ id = accts.connect('account-added', lambda accounts, account: self.__on_account_added(account))
self.__connections.add(accts, id)
- id = accts.connect('account-removed', self.__on_account_removed)
+ id = accts.connect('account-removed', lambda accounts, account: self.__on_account_removed(account))
self.__connections.add(accts, id)
## we can't just override _on_delisted() because of multiple inheritance,
Modified: bigboard/trunk/bigboard/stocks/google_calendar/CalendarStock.py
===================================================================
--- bigboard/trunk/bigboard/stocks/google_calendar/CalendarStock.py 2007-12-21 23:10:25 UTC (rev 7122)
+++ bigboard/trunk/bigboard/stocks/google_calendar/CalendarStock.py 2007-12-28 17:15:37 UTC (rev 7123)
@@ -984,7 +984,7 @@
return False
def __on_failed_load(self, response):
- _logger.debug("load failed")
+ _logger.debug("load failed: %s", response)
## this displays the "need to log in" thing
self.__refresh_events()
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]