#NEWLINE# def tno_can_add( self , node , add_object ) : #NEWLINE# #INDENT# ' Returns whether a given object is droppable on the node.\n        ' #NEWLINE# from mayavi.core.filter import Filter #NEWLINE# try : #NEWLINE# #INDENT# if ( issubclass ( add_object , Filter ) or issubclass ( add_object , ModuleManager ) ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# #UNINDENT# except TypeError : #NEWLINE# #INDENT# if ( isinstance ( add_object , Filter ) or isinstance ( add_object , ModuleManager ) ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# #UNINDENT# return False