#NEWLINE# def set( self , value ) : #NEWLINE# #INDENT# if self . multiple : #NEWLINE# #INDENT# if ( not isinstance ( value , list ) ) : #NEWLINE# #INDENT# raise Error ( ( 'Option %r is required to be a list of %s' % ( self . name , self . type . __name__ ) ) ) #NEWLINE# #UNINDENT# for item in value : #NEWLINE# #INDENT# if ( ( item is not None ) and ( not isinstance ( item , self . type ) ) ) : #NEWLINE# #INDENT# raise Error ( ( 'Option %r is required to be a list of %s' % ( self . name , self . type . __name__ ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( value is not None ) and ( not isinstance ( value , self . type ) ) ) : #NEWLINE# #INDENT# raise Error ( ( 'Option %r is required to be a %s (%s given)' % ( self . name , self . type . __name__ , type ( value ) ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# self . _value = value #NEWLINE# if ( self . callback is not None ) : #NEWLINE# #INDENT# self . callback ( self . _value )