comparison 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
comparison
equal deleted inserted replaced
106:edce682df120 107:c3fb3292f582
85 ["getSignals"]) 85 ["getSignals"])
86 86
87 def onRemoteError(self, code, errobj, request_info): 87 def onRemoteError(self, code, errobj, request_info):
88 LiberviaJsonProxy.onRemoteError(self, code, errobj, request_info) 88 LiberviaJsonProxy.onRemoteError(self, code, errobj, request_info)
89 #we now try to reconnect 89 #we now try to reconnect
90 self.host.bridge_signals.call('getSignals', self.host._getSignalsCB) 90 if isinstance(errobj['message'],dict) and errobj['message']['faultCode']==0:
91 Window.alert('You are not allowed to connect to server')
92 else:
93 self.host.bridge_signals.call('getSignals', self.host._getSignalsCB)
91 94
92 class MicroblogEntry(): 95 class MicroblogEntry():
93 def __init__(self, data): 96 def __init__(self, data):
94 self.id = data['id'] 97 self.id = data['id']
95 self.content = data['content'] 98 self.content = data['content']