[py-svn] r36430 - in py/dist/py/test/rsession: . webdata
fijal at codespeak.net
fijal at codespeak.net
Wed Jan 10 19:44:15 CET 2007
Author: fijal
Date: Wed Jan 10 19:44:11 2007
New Revision: 36430
Modified:
py/dist/py/test/rsession/webdata/source.js
py/dist/py/test/rsession/webjs.py
Log:
Add rsyncing info, right now without any progress bar.
Modified: py/dist/py/test/rsession/webdata/source.js
==============================================================================
Binary files. No diff available.
Modified: py/dist/py/test/rsession/webjs.py
==============================================================================
--- py/dist/py/test/rsession/webjs.py (original)
+++ py/dist/py/test/rsession/webjs.py Wed Jan 10 19:44:11 2007
@@ -190,6 +190,8 @@
td.appendChild(txt)
tr.appendChild(td)
module_part.appendChild(tr)
+ elif msg['type'] == 'RsyncFinished':
+ glob.rsync_done = True
if glob.data_empty:
mbox = dom.document.getElementById('messagebox')
mbox.parentNode.scrollIntoView()
@@ -248,7 +250,19 @@
elem.removeChild(elem.childNodes[0])
elem.style.visibility = "hidden"
glob.host = ""
-
+
+def update_rsync():
+ elem = dom.document.getElementById("Tests")
+ if glob.rsync_done is True:
+ elem.childNodes[0].nodeValue = "Tests"
+ return
+ text = "Rsyncing" + '.' * glob.rsync_dots
+ glob.rsync_dots += 1
+ if glob.rsync_dots > 5:
+ glob.rsync_dots = 0
+ elem.childNodes[0].nodeValue = "Tests [%s]" % text
+ dom.setTimeout(update_rsync, 1000)
+
def host_init(host_dict):
tbody = dom.document.getElementById("hostsbody")
for host in host_dict.keys():
@@ -262,6 +276,9 @@
tr.appendChild(td)
td.setAttribute("onmouseover", "show_host('%s')" % host)
td.setAttribute("onmouseout", "hide_host()")
+ glob.rsync_dots = 0
+ glob.rsync_done = False
+ dom.setTimeout(update_rsync, 1000)
glob.host_dict = host_dict
glob.host_pending = {}
for key in host_dict.keys():
More information about the pytest-commit
mailing list