#NEWLINE# def _validate_object( value ) : #NEWLINE# #INDENT# if isinstance ( value , basestring ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return eval ( value , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# ( ex , val , tb ) = sys . exc_info ( ) #NEWLINE# del tb #NEWLINE# raise ValidationError ( 'Could not evaluate object: {}: {}' . format ( ex , __name__ , val ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# return value