Exemplo n.º 1
0
 def get(self, request, *args, **kwargs):
     auditor.record(event_type=EXPERIMENT_OUTPUTS_DOWNLOADED,
                    instance=self.experiment,
                    actor_id=self.request.user.id,
                    actor_name=self.request.user.username)
     archived_path, archive_name = archive_experiment_outputs(
         persistence_outputs=self.experiment.persistence_outputs,
         experiment_name=self.experiment.unique_name)
     return self.redirect(path='{}/{}'.format(archived_path, archive_name))
Exemplo n.º 2
0
 def get(self, request, *args, **kwargs):
     experiment = self.get_object()
     archived_path, archive_name = archive_experiment_outputs(
         persistence_outputs=experiment.persistence_outputs,
         experiment_name=experiment.unique_name)
     return self.redirect(path='{}/{}'.format(archived_path, archive_name))