#NEWLINE# def TranslateNameInDb( self , name_in_db ) : #NEWLINE# #INDENT# "Given the name of a table in the database, translate to the name\n    for that table that the application uses (which may be different if\n    we've done an upgrade). If the table exists in the database, but not\n    in the application, just return the name in the database.\n    " #NEWLINE# key = name_in_db . lower ( ) #NEWLINE# return ( self . _tables_in_db [ key ] . name if ( key in self . _tables_in_db ) else name_in_db )