#NEWLINE# def is_active( self ) : #NEWLINE# #INDENT# 'Return whether the item is currently active.\n\n        The item will be active if the current page matches the URL\n        associated with the item.\n        ' #NEWLINE# if ( self . view_id is None ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# request = view_id . datagrid . request #NEWLINE# view_id = request . GET . get ( 'view' , self . sidebar . default_view_id ) #NEWLINE# if ( view_id != self . view_id ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# if self . view_args : #NEWLINE# #INDENT# for ( key , value ) in six . iteritems ( self . view_args ) : #NEWLINE# #INDENT# if ( request . GET . get ( key ) != value ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return True