@typecheck(basestring, Resource, ITERATION(basestring))
    def _notify_experiment_status(self, new_status, resource_instance, messages = []):
        experiment_instance_ids = self.resources_manager.list_experiment_instance_ids_by_resource(resource_instance)
        if new_status == 'fixed':
            what = 'work again'
        else:
            what = 'not work'
        body = """The resource %s has changed its status to: %s\n\nTherefore the following experiment instances will %s:\n\n""" % (
                resource_instance, new_status, what)

        for experiment_instance_id in experiment_instance_ids:
            body += (experiment_instance_id.to_weblab_str() % "\t%s\n")

        if len(messages) > 0:
            body += "\nReasons: %r\n\nThe WebLab-Deusto system\n<%s>" % (messages, self.core_server_url)
        recipients = self._retrieve_recipients(experiment_instance_ids)

        if len(recipients):
            return { tuple(sorted(recipients)) : [(body, resource_instance)] }
        else:
            return {}
dataset/ETHPy150Open weblabdeusto/weblabdeusto/server/src/weblab/core/coordinator/coordinator.py/AbstractCoordinator._notify_experiment_status/swapped operands of `%`