[Checkins] SVN: zopetoolkit/doc/s Distinguish failures from other kinds of errors.
Marius Gedminas
marius at pov.lt
Tue Sep 14 10:08:31 EDT 2010
Log message for revision 116402:
Distinguish failures from other kinds of errors.
Changed:
A zopetoolkit/doc/source/_static/unknown.png
U zopetoolkit/doc/source/_static/ztk.css
U zopetoolkit/doc/src/ztksphinx.py
-=-
Added: zopetoolkit/doc/source/_static/unknown.png
===================================================================
(Binary files differ)
Property changes on: zopetoolkit/doc/source/_static/unknown.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: zopetoolkit/doc/source/_static/ztk.css
===================================================================
--- zopetoolkit/doc/source/_static/ztk.css 2010-09-14 14:05:57 UTC (rev 116401)
+++ zopetoolkit/doc/source/_static/ztk.css 2010-09-14 14:08:30 UTC (rev 116402)
@@ -30,3 +30,9 @@
background-repeat: no-repeat;
padding-left: 18px;
}
+
+.tests_could_not_determine {
+ background-image: url("../_static/unknown.png");
+ background-repeat: no-repeat;
+ padding-left: 18px;
+}
Modified: zopetoolkit/doc/src/ztksphinx.py
===================================================================
--- zopetoolkit/doc/src/ztksphinx.py 2010-09-14 14:05:57 UTC (rev 116401)
+++ zopetoolkit/doc/src/ztksphinx.py 2010-09-14 14:08:30 UTC (rev 116402)
@@ -37,8 +37,12 @@
for node in doctree.traverse(BuildbotColor):
buildbot_url = node.buildbot_url
buildbot_result = getBuildbotResult(buildbot_url)
- css_class = buildbot_result and 'tests_passed' or \
- 'tests_not_passed'
+ if buildbot_result is None:
+ css_class = 'tests_could_not_determine'
+ elif buildbot_result:
+ css_class = 'tests_passed'
+ else:
+ css_class = 'tests_not_passed'
node.css_class = css_class
finally:
socket.setdefaulttimeout(socket_timeout)
@@ -52,7 +56,7 @@
xmlrpc = ServerProxy(xmlrpc_url)
return xmlrpc.getLastBuildResults(builder) == 'success'
except:
- return False
+ return None
class BuildbotColor(nodes.Inline, nodes.TextElement):
pass
More information about the checkins
mailing list