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
# -----------------------------------------------------------------------
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)
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()