#NEWLINE# def _between_condition( col_attr , value ) : #NEWLINE# #INDENT# 'Return sql range condition.' #NEWLINE# if ( ( value [ 0 ] is not None ) and ( value [ 1 ] is not None ) ) : #NEWLINE# #INDENT# return col_attr . between ( value [ 0 ] , value [ 1 ] ) #NEWLINE# #UNINDENT# if ( value [ 0 ] is not None ) : #NEWLINE# #INDENT# return ( col_attr >= value [ 0 ] ) #NEWLINE# #UNINDENT# if ( value [ 1 ] is not None ) : #NEWLINE# #INDENT# return ( col_attr <= value [ 1 ] ) #NEWLINE# #UNINDENT# return None