Ejemplo n.º 1
0
 def CompareTwoCellsCommentsAndChangeComment(address1,key1,address2,key2,threshold,filename):
     preCB = XMLinterpreter(address1)
     preAC = XMLinterpreter(address2)
     condition  = [True, True, True, True]
     CB = CellCointainer(preCB, condition)
     AC = CellCointainer(preAC, condition)
     comments1 = CB.commentWithKeywordExtract(key1)
     comments2 = AC.commentWithKeywordExtract(key2)
     comments1.sort(key = lambda x:x[1])
     comments2.sort(key = lambda x:x[1])
     
     CBAC =XMLutility.commentChanger(CB.scale,comments1, comments2, threshold)
     CBACsorted =XMLutility.sortNodes(CBAC)
     CB.Comments = CBACsorted
     XMLutility.CellPrinter(CB, filename)#