bigboard r7317 - in trunk/bigboard/stocks: apps self
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: bigboard r7317 - in trunk/bigboard/stocks: apps self
- Date: Thu, 24 Apr 2008 20:57:53 +0100 (BST)
Author: walters
Date: Thu Apr 24 19:57:53 2008
New Revision: 7317
URL: http://svn.gnome.org/viewvc/bigboard?rev=7317&view=rev
Log:
Bug #528108: Not displayed with no internet connection (Marco)
Modified:
trunk/bigboard/stocks/apps/apps.py
trunk/bigboard/stocks/self/SelfStock.py
Modified: trunk/bigboard/stocks/apps/apps.py
==============================================================================
--- trunk/bigboard/stocks/apps/apps.py (original)
+++ trunk/bigboard/stocks/apps/apps.py Thu Apr 24 19:57:53 2008
@@ -228,10 +228,10 @@
self.__handler(apps)
def __on_error(self, url, args):
- if 'status' in args and args['status'] == '504':
+ if response and 'status' in response and response['status'] == '504':
_logger.debug("don't have local cache for %s", url)
else:
- _logger.error("failed to get http request %s: %s", self.__relative_url, args)
+ _logger.error("failed to get http request %s: %s", self.__relative_url, response)
self.__handler([])
def __do_download(self):
Modified: trunk/bigboard/stocks/self/SelfStock.py
==============================================================================
--- trunk/bigboard/stocks/self/SelfStock.py (original)
+++ trunk/bigboard/stocks/self/SelfStock.py Thu Apr 24 19:57:53 2008
@@ -416,9 +416,14 @@
_logger.debug("photoUrl: %s", myself.photoUrl)
self._photo.set_url(myself.photoUrl)
self._name.set_property("text", myself.name)
-
+
+ try:
+ loved_accounts = myself.lovedAccounts
+ except AttributeError:
+ loved_accounts = []
+
self._whereim_box.remove_all()
- for acct in myself.lovedAccounts:
+ for acct in loved_accounts:
icon = ExternalAccountIcon(acct)
_logger.debug("appending external account %s", acct.accountType)
self._whereim_box.append(icon)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]