#NEWLINE# def get( self , request , * args , **kwargs ) : #NEWLINE# #INDENT# self . category = self . get_category ( ) #NEWLINE# potential_redirect = self . redirect_if_necessary ( request . path , kwargs . category ) #NEWLINE# if ( potential_redirect is not None ) : #NEWLINE# #INDENT# return potential_redirect #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# self . search_handler = self . get_search_handler ( request . GET , request . get_full_path ( ) , self . get_categories ( ) ) #NEWLINE# #UNINDENT# except InvalidPage : #NEWLINE# #INDENT# messages . error ( request , _ ( 'The given page number was invalid.' ) ) #NEWLINE# return redirect ( self . category . get_absolute_url ( ) ) #NEWLINE# #UNINDENT# return super ( ProductCategoryView , self ) . get ( request , * args , ** kwargs )