#NEWLINE# def options( self , request , key , default ) : #NEWLINE# #INDENT# 'Get the (option, title) pair we want according to the request.' #NEWLINE# if ( ( key in request . GET ) and ( ( request . GET [ key ] in self . opts_dict ) or ( request . GET [ key ] in self . extras_dict ) ) ) : #NEWLINE# #INDENT# opt = request . GET [ key ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# opt = default #NEWLINE# #UNINDENT# if ( opt in self . opts_dict ) : #NEWLINE# #INDENT# title = self . opts_dict [ opt ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# title = self . extras_dict [ opt ] #NEWLINE# #UNINDENT# return ( opt , title )