#NEWLINE# def _parse_shortcut( value_parser ) : #NEWLINE# #INDENT# def f( value , render_device ) : #NEWLINE# #INDENT# value = [ value_parser ( v , render_device ) for v in value ] #NEWLINE# if ( len ( value ) == 1 ) : #NEWLINE# #INDENT# return ( value [ 0 ] , value [ 0 ] , value [ 0 ] , value [ 0 ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( len ( value ) == 2 ) : #NEWLINE# #INDENT# return ( value [ 0 ] , value [ 1 ] , value [ 0 ] , value [ 1 ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( len ( value ) == 3 ) : #NEWLINE# #INDENT# return ( value [ 0 ] , value [ 1 ] , value [ 2 ] , value [ 1 ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( len ( value ) == 4 ) : #NEWLINE# #INDENT# return value #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise ValidationException ( ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return value_parser