def apply_new_scoped_variable_default_value(self, path, new_default_value_str):
        """Applies the new default value of the scoped variable defined by path

        :param str path: The path identifying the edited variable
        :param str new_default_value_str: New default value as string
        """
        data_port_id = self.get_list_store_row_from_cursor_selection()[self.ID_STORAGE_ID]
        try:
            if str(self.model.state.scoped_variables[data_port_id].default_value) != new_default_value_str:
                self.model.state.scoped_variables[data_port_id].default_value = new_default_value_str
        except (TypeError, AttributeError) as e:
            logger.error("Error while changing default value: {0}".format(e))
def apply_new_scoped_variable_default_value ( self , path , new_default_value_str ) : data_port_id = self . get_list_store_row_from_cursor_selection ( ) [ self . ID_STORAGE_ID ] try : if str ( self . model . state . scoped_variables [ data_port_id ] . default_value ) != new_default_value_str : self . model . state . scoped_variables [ data_port_id ] . default_value = new_default_value_str except ( TypeError , AttributeError ) as e : logger . error ( "Error while changing default value: {0}" . format ( e ) )
Applies the new default value of the scoped variable defined by path

        :param str path: The path identifying the edited variable
        :param str new_default_value_str: New default value as string