#NEWLINE# def OrderSet( self , value ) : #NEWLINE# #INDENT# if ( not isinstance ( self , Order ) ) : #NEWLINE# #INDENT# raise TypeError ( ( 'Expected an enum, received: %s.' % ( value , ) ) ) #NEWLINE# #UNINDENT# if ( value == Order . WHEN ) : #NEWLINE# #INDENT# super ( Score , self ) . OrderSet ( '-played' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( value == Order . TEXT ) : #NEWLINE# #INDENT# super ( Score , self ) . OrderSet ( 'outcome' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise TypeError ( ( 'Unexpected value of Order: %s.' % ( value , ) ) )