#NEWLINE# @ app_template_filter ( 'get_link_order' ) #NEWLINE# def get_link_order_filter( self , column , modelview_name ) : #NEWLINE# #INDENT# if ( request . args . get ( ( '_oc_' + modelview_name ) ) == modelview_name ) : #NEWLINE# #INDENT# if ( request . args . get ( ( '_od_' + modelview_name ) ) == 'asc' ) : #NEWLINE# #INDENT# return 2 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return 1 #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# return 0