r6946 - bigboard/trunk/bigboard/stocks/self
- From: commits mugshot org
- To: online-desktop-list gnome org
- Subject: r6946 - bigboard/trunk/bigboard/stocks/self
- Date: Sun, 2 Dec 2007 23:58:36 -0600 (CST)
Author: walters
Date: 2007-12-02 23:58:35 -0600 (Sun, 02 Dec 2007)
New Revision: 6946
Modified:
bigboard/trunk/bigboard/stocks/self/SelfStock.py
Log:
Show error notice if our compatible protocol version is too low.
Modified: bigboard/trunk/bigboard/stocks/self/SelfStock.py
===================================================================
--- bigboard/trunk/bigboard/stocks/self/SelfStock.py 2007-12-03 05:58:10 UTC (rev 6945)
+++ bigboard/trunk/bigboard/stocks/self/SelfStock.py 2007-12-03 05:58:35 UTC (rev 6946)
@@ -1,4 +1,5 @@
import logging, os, subprocess, urlparse
+from distutils.version import LooseVersion as Version
import gobject, gtk, pango
import gconf
@@ -19,6 +20,8 @@
_logger = logging.getLogger('bigboard.stocks.SelfStock')
+COMPATIBLE_PROTOCOL_VERSION = "0"
+
GCONF_PREFIX = '/apps/bigboard/'
class FixedCountWrapBox(CanvasVBox):
@@ -325,6 +328,14 @@
self.emit('info-loaded')
def __on_ready(self):
+ if Version(self._model.global_resource.ddmProtocolVersion) > Version(COMPATIBLE_PROTOCOL_VERSION):
+ text = hippo.CanvasText(text="Upgrade required", font='14px Bold', border=1, border_color=0xFF0000FF)
+ self._box.append(text)
+ errorbox = CanvasVBox()
+ errorbox.append(hippo.CanvasText(text='Upgrade required'))
+ self._box.set_child_visible(self._signin, False)
+ return
+
self._box.set_child_visible(self._signin, self._model.self_resource == None)
self._box.set_child_visible(self._whereim_box, self._model.self_resource != None)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]