def diff( self, id1, id2, r1=None, r2=None ):
cdfl = CoreData.FileList()
cdfl.__createFileList__()
fn1 = cdf.__filterByFlightNumberAndRevision__( id1, r1 )
fn2 = cdf.__filterByFlightNumberAndRevision__( id2, r2 )
fc1 = __getFlightConstants__( fn1 )
fc2 = __getFlightConstants__( fn2 )
differ = difflib.HtmlDiff( tabsize=4, wrapcolumn=40 )
html = differ.make_file( fc1, fc2, context=False )
outfile = open( '/home/axel/tmp/difftest.html', 'w' )
outfile.write(html)
outfile.close()
评论列表
文章目录