r6902 - bigboard/trunk/bigboard
- From: commits mugshot org
- To: online-desktop-list gnome org
- Subject: r6902 - bigboard/trunk/bigboard
- Date: Tue, 13 Nov 2007 15:28:55 -0600 (CST)
Author: walters
Date: 2007-11-13 15:28:51 -0600 (Tue, 13 Nov 2007)
New Revision: 6902
Modified:
bigboard/trunk/bigboard/accounts.py
Log:
Don't lose if no weblogindriver is running.
Modified: bigboard/trunk/bigboard/accounts.py
===================================================================
--- bigboard/trunk/bigboard/accounts.py 2007-11-13 17:31:38 UTC (rev 6901)
+++ bigboard/trunk/bigboard/accounts.py 2007-11-13 21:28:51 UTC (rev 6902)
@@ -105,10 +105,15 @@
## this is a hash from AccountKind to (username, password) from the weblogindriver
self.__weblogin_info = {}
- self.__weblogindriver_proxy = dbus.SessionBus().get_object('org.gnome.WebLoginDriver', '/weblogindriver')
- self.__weblogindriver_proxy.connect_to_signal("SignonChanged",
- self.__on_signon_changed)
- self.__recheck_signons()
+ try:
+ self.__weblogindriver_proxy = dbus.SessionBus().get_object('org.gnome.WebLoginDriver', '/weblogindriver')
+ self.__weblogindriver_proxy.connect_to_signal("SignonChanged",
+ self.__on_signon_changed)
+ except dbus.DBusException, e:
+ _logger.debug("weblogindriver not available")
+ self.__weblogindriver_proxy = None
+ if self.__weblogindriver_proxy:
+ self.__recheck_signons()
self.__gconf = gconf.client_get_default()
self.__gconf.add_dir('/apps/bigboard/accounts', gconf.CLIENT_PRELOAD_RECURSIVE)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]