#NEWLINE# def _create_context( self , request ) : #NEWLINE# #INDENT# show = request . GET . get ( 'show' , self . default_show ) #NEWLINE# order_by = request . GET . get ( 'order_by' , self . default_order_by ) #NEWLINE# order_dir = request . GET . get ( 'order_dir' , self . default_order_dir ) #NEWLINE# if show : #NEWLINE# #INDENT# show = int ( show ) #NEWLINE# #UNINDENT# path = request . GET . get ( 'path' , None ) #NEWLINE# raw_filters = request . session . get ( self . session_key_request_filters , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# context = { #NEWLINE# #INDENT# 'show' : show , #NEWLINE# 'order_by' : order_by , #NEWLINE# 'order_dir' : order_dir , #NEWLINE# 'request' : request , #NEWLINE# 'options_show' : self . show , #NEWLINE# 'options_order_by' : self . options_order_by , #NEWLINE# 'options_order_dir' : order_by . options_order_dir , #NEWLINE# 'options_paths' : self . _get_paths ( ) , #NEWLINE# 'view_names' : [ x [ 0 ] for x in Request . objects . values_list ( 'view_name' ) . distinct ( ) ] , #NEWLINE# 'filters' : raw_filters , #NEWLINE# #UNINDENT# } #NEWLINE# context . update ( csrf ( request ) ) #NEWLINE# if path : #NEWLINE# #INDENT# context [ 'path' ] = path #NEWLINE# #UNINDENT# context [ 'results' ] = self . _get_objects ( show , order_by , order_dir , path , filters = [ BaseFilter . from_dict ( x ) for ( _ , x ) in raw_filters . items ( ) ] ) #NEWLINE# return context