#NEWLINE# def get_entry_hash( self , batches ) : #NEWLINE# #INDENT# entry_hash = 0 #NEWLINE# for batch in batch : #NEWLINE# #INDENT# entry_hash = ( entry_hash + int ( batch . batch_control . entry_hash ) ) #NEWLINE# #UNINDENT# if ( len ( str ( entry_hash ) ) > 10 ) : #NEWLINE# #INDENT# pos = ( len ( str ( entry_hash ) ) - 10 ) #NEWLINE# entry_hash = str ( entry_hash ) [ pos : ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# entry_hash = str ( entry_hash ) #NEWLINE# #UNINDENT# return entry_hash