#NEWLINE# def validate( self , object , name , value ) : #NEWLINE# #INDENT# ' Validates that a specified value is valid for this trait.\n        ' #NEWLINE# from . theme import Theme #NEWLINE# if ( value is None ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# new_value = convert_theme ( value , 4 ) #NEWLINE# if isinstance ( new_value , Theme ) : #NEWLINE# #INDENT# return new_value #NEWLINE# #UNINDENT# self . error ( object , name , value )