|
|
@ -93,13 +93,13 @@ class Matching(): |
|
|
|
job.debug(verify, "getDiffHeader ") |
|
|
|
htmltxt = "<!DOCTYPE html>" |
|
|
|
htmltxt += "<html><head>" |
|
|
|
htmltxt += "<title>"+M.MARCH[matching.matchtype]["title"]+"</title>" |
|
|
|
htmltxt += "<title>"+M.MATCH[matching.matchtype]["title"]+"</title>" |
|
|
|
htmltxt += utils.css_tool.getInternalStyle("diffFiles") |
|
|
|
htmltxt += "</head>" |
|
|
|
htmltxt += "<body>" |
|
|
|
htmltxt += "<h1>"+M.MARCH[matching.matchtype]["title"]+"</h1>" |
|
|
|
htmltxt += "<h4>"+M.MARCH[M.MARCH[matching.matchtype]["A"]]["long"]+": "+matching.matchfiles["A"]+"</h4>" |
|
|
|
htmltxt += "<h4>"+M.MARCH[M.MARCH[matching.matchtype]["B"]]["long"]+": "+matching.matchfiles["B"]+"</h4><br>" |
|
|
|
htmltxt += "<h1>"+M.MATCH[matching.matchtype]["title"]+"</h1>" |
|
|
|
htmltxt += "<h4>"+M.MATCH[M.MATCH[matching.matchtype]["A"]]["long"]+": "+matching.matchfiles["A"]+"</h4>" |
|
|
|
htmltxt += "<h4>"+M.MATCH[M.MATCH[matching.matchtype]["B"]]["long"]+": "+matching.matchfiles["B"]+"</h4><br>" |
|
|
|
matching.htmltext = htmltxt |
|
|
|
|
|
|
|
def setDiffFooter(self): |
|
|
@ -276,7 +276,7 @@ def getEvaluation(matching, type, acceptance, sideA, sideB): |
|
|
|
result = "test" |
|
|
|
if match == "99": return ["MATCH", "novalue", "novalue", "novalue", "novalue"] |
|
|
|
if acceptance == "ignore": result = "ignore" |
|
|
|
if (matching.matchtype == M.MARCH_POSTCOND) and (result == "test"): |
|
|
|
if (matching.matchtype == M.MATCH_POSTCOND) and (result == "test"): |
|
|
|
result = "hard" |
|
|
|
classA = "diffA" |
|
|
|
classB = "diffB" |
|
|
@ -392,7 +392,7 @@ def markRow(matching, header, row, side): |
|
|
|
cssClass = res[2] |
|
|
|
text += "<td "+utils.css_tool.getInlineStyle("diffFiles", cssClass)+">"+val+"</td>" |
|
|
|
text = "<tr><td "+utils.css_tool.getInlineStyle("diffFiles", cssClass)+">" \ |
|
|
|
+ M.MARCH[M.MARCH[matching.matchtype][side]]["short"] + "</td>"+text+"</tr>" |
|
|
|
+ M.MATCH[M.MATCH[matching.matchtype][side]]["short"] + "</td>"+text+"</tr>" |
|
|
|
matching.difftext += text |
|
|
|
return text |
|
|
|
|
|
|
@ -447,8 +447,8 @@ def compareRow(matching, header, rA, rB): |
|
|
|
matching.setCssClass("result1") |
|
|
|
if allident: |
|
|
|
return "<tr><td/>"+textA+"</tr>" |
|
|
|
text = "<tr><td>"+M.MARCH[M.MARCH[matching.matchtype]["A"]]["short"]+"</td>"+textA+"</tr>" |
|
|
|
text += "<tr><td>"+M.MARCH[matching.matchtype]["shortB"]+"</td>"+textB+"</tr>" |
|
|
|
text = "<tr><td>"+M.MATCH[M.MATCH[matching.matchtype]["A"]]["short"]+"</td>"+textA+"</tr>" |
|
|
|
text += "<tr><td>"+M.MATCH[matching.matchtype]["shortB"]+"</td>"+textB+"</tr>" |
|
|
|
matching.difftext += text |
|
|
|
return text |
|
|
|
|
|
|
|