#NEWLINE# def get_table_name( self , postfix , old = False ) : #NEWLINE# #INDENT# if ( not self . snapshot ) : #NEWLINE# #INDENT# raise Exception ( 'Table name requires snapshot' ) #NEWLINE# #UNINDENT# if ( not self . snapshot . hash ) : #NEWLINE# #INDENT# raise Exception ( 'Snapshot hash is empty.' ) #NEWLINE# #UNINDENT# if old : #NEWLINE# #INDENT# return ( 'stellar_%s_%s_%s' % ( self . table_name , self . snapshot . hash , self ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return ( 'stellar_%s' % hashlib . md5 ( ( '%s|%s|%s' % ( self . table_name , self . snapshot . hash , postfix ) ) . encode ( 'utf-8' ) ) . hexdigest ( ) [ 0 : 16 ] )