Update changelog & UI for 0.8.8
[hermes] / package / src / org / maemo / hermes / gui / gtkui.py
index 45fdce7..eed09fc 100644 (file)
@@ -13,6 +13,7 @@ from org.maemo.hermes.gui.mapcontact import MapContact
 from org.maemo.hermes.gui.accountsdialogue import AccountsDialogue
 from org.bleb.wimpworks import HildonMainScreenLayout
 from org.maemo.hermes.engine.hermes import Hermes
+from org.maemo.hermes.engine.service import CredentialsExpiredException
 
 class HermesGUI(WimpWorks):
     """Provides the GUI for Hermes, allowing the syncing of Facebook and
@@ -25,7 +26,7 @@ class HermesGUI(WimpWorks):
     # -----------------------------------------------------------------------
     def __init__(self, providers = None):
         gettext.install('hermes','/opt/hermes/share/locale/')
-        WimpWorks.__init__(self, 'Hermes', version = '0.8.6', dbus_name = 'org.maemo.hermes')
+        WimpWorks.__init__(self, 'Hermes', version = '0.8.8', dbus_name = 'org.maemo.hermes')
         self.set_background('background.png')
         
         layout = HildonMainScreenLayout(offset = 0.8, container = self)
@@ -144,6 +145,9 @@ class HermesGUI(WimpWorks):
             except urllib2.URLError, e:
                 traceback.print_exc()
                 gobject.idle_add(self.report_error, _('Network connection error. Check connectivity.'))
+                
+            except CredentialsExpiredException, e:
+                gobject.idle_add(self.report_error, _('Credentials expired. Please reauthorise %s.') % (e.message))
           
             except Exception, e:
                 traceback.print_exc()