[svn r40739] Make FAILED TO LOAD MODULE clickable

--HG--
branch : trunk
This commit is contained in:
fijal 2007-03-18 23:53:14 +01:00
parent f6980c4b9d
commit ae3e6b9bf0
3 changed files with 2923 additions and 2966 deletions

View File

@ -276,7 +276,7 @@ class ExportedMethods(BasicExternal):
def repr_source(self, relline, source):
lines = []
for num, line in enumerate(source.split("\n")):
for num, line in enumerate(str(source).split("\n")):
if num == relline:
lines.append(">>>>" + line)
else:
@ -289,7 +289,10 @@ class ExportedMethods(BasicExternal):
def report_FailedTryiter(self, event):
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)
def report_ItemStart(self, event):

File diff suppressed because it is too large Load Diff

View File

@ -212,10 +212,16 @@ def process(msg):
return True
tr = create_elem("tr")
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")
td.appendChild(txt)
a.appendChild(txt)
td.appendChild(a)
tr.appendChild(td)
module_part.appendChild(tr)
item_name = msg['fullitemname']
exported_methods.show_fail(item_name, fail_come_back)
elif msg['type'] == 'SkippedTryiter':
module_part = get_elem(msg['fullitemname'])
if not module_part: