r6947 - bigboard/trunk/bigboard/stocks/self
- From: commits mugshot org
- To: online-desktop-list gnome org
- Subject: r6947 - bigboard/trunk/bigboard/stocks/self
- Date: Mon, 3 Dec 2007 16:11:15 -0600 (CST)
Author: walters
Date: 2007-12-03 16:11:15 -0600 (Mon, 03 Dec 2007)
New Revision: 6947
Modified:
bigboard/trunk/bigboard/stocks/self/SelfStock.py
Log:
Add compat with current server.
Modified: bigboard/trunk/bigboard/stocks/self/SelfStock.py
===================================================================
--- bigboard/trunk/bigboard/stocks/self/SelfStock.py 2007-12-03 05:58:35 UTC (rev 6946)
+++ bigboard/trunk/bigboard/stocks/self/SelfStock.py 2007-12-03 22:11:15 UTC (rev 6947)
@@ -328,7 +328,11 @@
self.emit('info-loaded')
def __on_ready(self):
- if Version(self._model.global_resource.ddmProtocolVersion) > Version(COMPATIBLE_PROTOCOL_VERSION):
+ try:
+ protocol_version = self._model.global_resource.ddmProtocolVersion
+ except AttributeError, e:
+ protocol_version = "0"
+ if Version(protocol_version) > Version(COMPATIBLE_PROTOCOL_VERSION):
text = hippo.CanvasText(text="Upgrade required", font='14px Bold', border=1, border_color=0xFF0000FF)
self._box.append(text)
errorbox = CanvasVBox()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]