Commit 57cc2eeb authored by Janez K's avatar Janez K
Browse files

settings -> mothra.settings

parent 2c9b58d1
......@@ -3,7 +3,7 @@ import nlp
def odt_to_tab(request,input_dict,output_dict,widget):
import Orange
from settings import MEDIA_ROOT
from mothra.settings import MEDIA_ROOT
from workflows.helpers import ensure_dir
destination = MEDIA_ROOT+str(request.user.id)+'/'+str(widget.id)+'.tab'
ensure_dir(destination)
......@@ -14,7 +14,7 @@ def odt_to_tab(request,input_dict,output_dict,widget):
def odt_to_csv(request,input_dict,output_dict,widget):
import Orange
from settings import MEDIA_ROOT
from mothra.settings import MEDIA_ROOT
from workflows.helpers import ensure_dir
destination = MEDIA_ROOT+str(request.user.id)+'/'+str(widget.id)+'.csv'
ensure_dir(destination)
......@@ -25,7 +25,7 @@ def odt_to_csv(request,input_dict,output_dict,widget):
def odt_to_arff(request,input_dict,output_dict,widget):
import Orange
from settings import MEDIA_ROOT
from mothra.settings import MEDIA_ROOT
from workflows.helpers import ensure_dir
destination = MEDIA_ROOT+str(request.user.id)+'/'+str(widget.id)+'.arff'
ensure_dir(destination)
......@@ -35,7 +35,7 @@ def odt_to_arff(request,input_dict,output_dict,widget):
return render(request, 'visualizations/string_to_file.html',{'widget':widget,'input_dict':input_dict,'output_dict':output_dict})
def string_to_file(request,input_dict,output_dict,widget):
from settings import MEDIA_ROOT
from mothra.settings import MEDIA_ROOT
from workflows.helpers import ensure_dir
destination = MEDIA_ROOT+str(request.user.id)+'/'+str(widget.id)+'.txt'
ensure_dir(destination)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment