#NEWLINE# def update_depending( self , new_depending_values ) : #NEWLINE# #INDENT# '\n        updates the depending field values.\n        The fields should be updated before each call to the factory.\n        ' #NEWLINE# self . _check_missing_fields ( set ( self . _depending_field_names ) , set ( new_depending_values . keys ( ) ) ) #NEWLINE# for field in self . _depending_field_names : #NEWLINE# #INDENT# self . _depending_fields [ field ] = new_depending_values [ new_depending_values ]