From d28685987e64d8483610fd91a5beefacad201590 Mon Sep 17 00:00:00 2001 From: vpodpecan Date: Thu, 13 Nov 2014 13:38:06 +0100 Subject: [PATCH] bugfix --- workflows/MUSE/visualization_views.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/workflows/MUSE/visualization_views.py b/workflows/MUSE/visualization_views.py index 78824b5..4a8d133 100644 --- a/workflows/MUSE/visualization_views.py +++ b/workflows/MUSE/visualization_views.py @@ -19,8 +19,9 @@ def MUSE_view_xmlOLD(request, input_dict, output_dict, widget): def MUSE_view_xml(request, input_dict, output_dict, widget): from mothra.settings import MEDIA_ROOT from workflows.helpers import ensure_dir - filename = os.path.join(str(request.user.id), str(widget.id) + '.xml') - destination = os.path.join(MEDIA_ROOT, filename) + + filename = '/'.join([str(request.user.id), str(widget.id) + '.xml']) + destination = '/'.join([MEDIA_ROOT, filename]) ensure_dir(destination) f = open(destination, 'w') f.write(str(input_dict['xml_data'])) -- GitLab