Mercurial > libervia-web
diff libervia.py @ 107:c3fb3292f582
browser side: CSS: changed tabs margin + fixed dragover background for chat panels
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 29 Jun 2011 02:08:43 +0200 |
parents | ca4fc2b2471b |
children | fad0e51cf565 |
line wrap: on
line diff
--- a/libervia.py Wed Jun 29 01:32:45 2011 +0200 +++ b/libervia.py Wed Jun 29 02:08:43 2011 +0200 @@ -87,7 +87,10 @@ def onRemoteError(self, code, errobj, request_info): LiberviaJsonProxy.onRemoteError(self, code, errobj, request_info) #we now try to reconnect - self.host.bridge_signals.call('getSignals', self.host._getSignalsCB) + if isinstance(errobj['message'],dict) and errobj['message']['faultCode']==0: + Window.alert('You are not allowed to connect to server') + else: + self.host.bridge_signals.call('getSignals', self.host._getSignalsCB) class MicroblogEntry(): def __init__(self, data):