#NEWLINE# def name_changed( self , old , new ) : #NEWLINE# #INDENT# 'Change any objectives that reference the old\n        name of an object that has now been changed to a new name.\n\n        old: string\n            Original name of the object\n\n        new: string\n            New name of the object\n        ' #NEWLINE# for ( name , obj ) in self . _objectives . items ( ) : #NEWLINE# #INDENT# orig = obj . text #NEWLINE# trans = obj . name_changed ( old , new ) #NEWLINE# if ( ( orig != trans ) and ( name == orig ) ) : #NEWLINE# #INDENT# del self . _objectives [ name ] #NEWLINE# self . _objectives [ trans ] = obj