#NEWLINE# def objecttype( self , type ) : #NEWLINE# #INDENT# name = getattr ( type , 'name' , None ) #NEWLINE# if name : #NEWLINE# #INDENT# objecttype = self . _types_names . get ( name , None ) #NEWLINE# if ( objecttype and inspect . isclass ( objecttype ) and issubclass ( type , ClassType ) ) : #NEWLINE# #INDENT# return objecttype