#NEWLINE# @ classmethod #NEWLINE# def update_backends( cls , id_mapping , custom_trees ) : #NEWLINE# #INDENT# '\n        Given the id_mapping from previous ids to new ids and the new\n        custom tree dictionary, update the current backend with the\n        supplied trees and update the keys in the remaining backends to\n        stay linked with the current object.\n        ' #NEWLINE# Store . custom_options ( ) . update ( custom_trees ) #NEWLINE# for backend in [ new_id for k in Store . renderers . keys ( ) if ( k != Store . current_backend ) ] : #NEWLINE# #INDENT# for ( old_id , new_id ) in id_mapping : #NEWLINE# #INDENT# tree = Store . _custom_options [ backend ] . pop ( old_id , None ) #NEWLINE# if ( tree is not None ) : #NEWLINE# #INDENT# Store . _custom_options [ backend ] [ new_id ] = tree