Esempio n. 1
0
def dataset_import(request):
    context = RequestContext(request)
    context.form = DataSetImportForm()
    if request.method == 'POST':
        form = DataSetImportForm(request.POST)
        context.rs = form.ds_import()
        if context.rs is False:
            context.failed = True
    context.datasets = DataSet.objects.all()
    return render_to_response("dataset-import.html", context_instance=context)
Esempio n. 2
0
def show_datasets(request):
    context = RequestContext(request)
    context.datasets = DataSet.objects.all()
    return render_to_response("dataset-import.html", context_instance=context)