#NEWLINE# @ util . dependencies ( 'sqlalchemy.orm.base' ) #NEWLINE# def _default_unmapped( base , cls ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# mappers = base . manager_of_class ( cls ) . mappers #NEWLINE# #UNINDENT# except NO_STATE : #NEWLINE# #INDENT# mappers = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# except TypeError : #NEWLINE# #INDENT# mappers = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# name = _safe_cls_name ( cls ) #NEWLINE# if ( not mappers ) : #NEWLINE# #INDENT# return ( "Class '%s' is not mapped" % name )