#NEWLINE# def get_year( self ) : #NEWLINE# #INDENT# '\n        Return the year for which this view should display data.\n        ' #NEWLINE# year = self . year #NEWLINE# if ( year is None ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# year = self . kwargs [ 'year' ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# year = self . request . GET [ 'year' ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# raise Http404 ( _ ( 'No year specified' ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return year