changeset 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 edce682df120
children fad0e51cf565
files libervia.py libervia.tac public/libervia.css
diffstat 3 files changed, 11 insertions(+), 3 deletions(-) [+]
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):
--- a/libervia.tac	Wed Jun 29 01:32:45 2011 +0200
+++ b/libervia.tac	Wed Jun 29 02:08:43 2011 +0200
@@ -606,6 +606,7 @@
                             'subscribe', 'contactDeleted', 'newContact']:
             self.bridge.register(signal_name, self.signal_handler.getGenericCb(signal_name))
         self.media_dir = self.bridge.getConfig('','media_dir')
+        self.local_dir = self.bridge.getConfig('','local_dir')
         root.putChild('json_signal_api', self.signal_handler)
         root.putChild('json_api', MethodHandler(self))
         root.putChild('register_api', _register)
--- a/public/libervia.css	Wed Jun 29 01:32:45 2011 +0200
+++ b/public/libervia.css	Wed Jun 29 02:08:43 2011 +0200
@@ -817,7 +817,7 @@
     -moz-border-radius: 1em 1em 1em 1em !important;
 }
 
-.dragover .widgetHeader, .dragover .widgetBody, .dragover .widgetHeader img {
+.dragover .widgetHeader, .dragover .widgetBody, .dragover .widgetBody span, .dragover .widgetHeader img {
     background: #cf2828 !important;
 }
 
@@ -889,9 +889,13 @@
 .gwt-TabBar .gwt-TabBarRest {
 }
 
+.mainTabPanel .gwt-TabBar {
+  margin-left: 20px;
+}
+
 .mainTabPanel .gwt-TabBar .gwt-TabBarItem {
   cursor: pointer;
-  margin-left: 20px;
+  margin-right: 5px;
   
 }