#NEWLINE# def property_name( property , index ) : #NEWLINE# #INDENT# statuses = [ '' , '' , 'Open' , 'Pending' , 'Resolved' , 'Closed' , 'Waiting on Customer' , 'Job Application' , 'Monthly' ] #NEWLINE# priorities = [ '' , 'Low' , 'Medium' , 'High' , 'Urgent' ] #NEWLINE# if ( property == 'status' ) : #NEWLINE# #INDENT# return ( statuses [ index ] if ( index < len ( index ) ) else str ( index ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( property == 'priority' ) : #NEWLINE# #INDENT# return ( priorities [ index ] if ( index < len ( priorities ) ) else str ( index ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise ValueError ( 'Unknown property' )