[svn r40739] Make FAILED TO LOAD MODULE clickable
--HG-- branch : trunk
This commit is contained in:
parent
f6980c4b9d
commit
ae3e6b9bf0
|
@ -276,7 +276,7 @@ class ExportedMethods(BasicExternal):
|
||||||
|
|
||||||
def repr_source(self, relline, source):
|
def repr_source(self, relline, source):
|
||||||
lines = []
|
lines = []
|
||||||
for num, line in enumerate(source.split("\n")):
|
for num, line in enumerate(str(source).split("\n")):
|
||||||
if num == relline:
|
if num == relline:
|
||||||
lines.append(">>>>" + line)
|
lines.append(">>>>" + line)
|
||||||
else:
|
else:
|
||||||
|
@ -289,7 +289,10 @@ class ExportedMethods(BasicExternal):
|
||||||
|
|
||||||
def report_FailedTryiter(self, event):
|
def report_FailedTryiter(self, event):
|
||||||
fullitemname = "/".join(event.item.listnames())
|
fullitemname = "/".join(event.item.listnames())
|
||||||
self.fail_reasons[fullitemname] = ''
|
self.fail_reasons[fullitemname] = self.repr_failure_tblong(
|
||||||
|
event.item, event.excinfo, event.excinfo.traceback)
|
||||||
|
self.stdout[fullitemname] = ''
|
||||||
|
self.stderr[fullitemname] = ''
|
||||||
self.pending_events.put(event)
|
self.pending_events.put(event)
|
||||||
|
|
||||||
def report_ItemStart(self, event):
|
def report_ItemStart(self, event):
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -212,10 +212,16 @@ def process(msg):
|
||||||
return True
|
return True
|
||||||
tr = create_elem("tr")
|
tr = create_elem("tr")
|
||||||
td = create_elem("td")
|
td = create_elem("td")
|
||||||
|
a = create_elem("a")
|
||||||
|
a.setAttribute("href", "javascript:show_traceback('%s')" % (
|
||||||
|
msg['fullitemname'],))
|
||||||
txt = create_text_elem("- FAILED TO LOAD MODULE")
|
txt = create_text_elem("- FAILED TO LOAD MODULE")
|
||||||
td.appendChild(txt)
|
a.appendChild(txt)
|
||||||
|
td.appendChild(a)
|
||||||
tr.appendChild(td)
|
tr.appendChild(td)
|
||||||
module_part.appendChild(tr)
|
module_part.appendChild(tr)
|
||||||
|
item_name = msg['fullitemname']
|
||||||
|
exported_methods.show_fail(item_name, fail_come_back)
|
||||||
elif msg['type'] == 'SkippedTryiter':
|
elif msg['type'] == 'SkippedTryiter':
|
||||||
module_part = get_elem(msg['fullitemname'])
|
module_part = get_elem(msg['fullitemname'])
|
||||||
if not module_part:
|
if not module_part:
|
||||||
|
|
Loading…
Reference in New Issue