You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2019/08/26 19:52:07 UTC
[airavata-django-portal] branch master updated: Add request to
generate_data call
This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git
The following commit(s) were added to refs/heads/master by this push:
new 3e1233d Add request to generate_data call
3e1233d is described below
commit 3e1233d45acc89f79e286f98ab620dea58da87d8
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Mon Aug 26 15:51:57 2019 -0400
Add request to generate_data call
---
django_airavata/apps/api/output_views.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/django_airavata/apps/api/output_views.py b/django_airavata/apps/api/output_views.py
index 953d975..19709f2 100644
--- a/django_airavata/apps/api/output_views.py
+++ b/django_airavata/apps/api/output_views.py
@@ -21,7 +21,7 @@ class DefaultViewProvider:
immediate = True
name = "Default"
- def generate_data(self, experiment_output, experiment, output_file=None):
+ def generate_data(self, request, experiment_output, experiment, output_file=None):
return {
}
@@ -32,6 +32,7 @@ class ParameterizedNotebookViewProvider:
# fixture_output_file = os.path.join(BASE_DIR, "data", "Gaussian.log")
def generate_data(self,
+ request,
experiment_output,
experiment,
output_file=None,
@@ -198,5 +199,5 @@ def _generate_data(request,
# TODO: change interface to provide output_file as a path
# TODO: convert experiment and experiment_output to dict/JSON
data = output_view_provider.generate_data(
- experiment_output, experiment, output_file=output_file)
+ request, experiment_output, experiment, output_file=output_file)
return data