#NEWLINE# @ register . function #NEWLINE# def status_choices( addon ) : #NEWLINE# #INDENT# '\n    Return a dict like File.STATUS_CHOICES customized for the addon status.\n    ' #NEWLINE# choices = dict ( File . STATUS_CHOICES ) #NEWLINE# if ( addon . status in ( amo . STATUS_NOMINATED , amo . STATUS_LITE_AND_NOMINATED , amo . STATUS_PUBLIC ) ) : #NEWLINE# #INDENT# choices [ amo . STATUS_UNREVIEWED ] = Addon . STATUS_CHOICES [ amo . STATUS_NOMINATED ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# choices [ amo . STATUS_UNREVIEWED ] = Addon . STATUS_CHOICES [ amo . STATUS_UNREVIEWED ] #NEWLINE# #UNINDENT# return choices