#NEWLINE# def compile_relation( self , method , expr , range_list ) : #NEWLINE# #INDENT# rv = [ ] #NEWLINE# expr = self . compile ( expr ) #NEWLINE# for item in range_list [ 1 ] : #NEWLINE# #INDENT# if ( item [ 0 ] == item [ 1 ] ) : #NEWLINE# #INDENT# rv . append ( ( '(%s == %s)' % ( expr , self . compile ( item [ 0 ] ) ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ( min , max ) = map ( self . compile , item ) #NEWLINE# rv . append ( ( '(%s >= %s && %s <= %s)' % ( expr , min , expr , max ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# return ( '(%s)' % ' || ' . join ( rv ) )