From: Diane Trout Date: Sat, 19 Sep 2009 01:28:24 +0000 (+0000) Subject: Put a stub species_json in, as I'd listed it in the samples/urls.py X-Git-Tag: 0.3.2~20 X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=f22eb99f314ed48ceb0062dffe4f8f25c7cf09dd Put a stub species_json in, as I'd listed it in the samples/urls.py this implementation just always returns 404 --- diff --git a/htsworkflow/frontend/samples/views.py b/htsworkflow/frontend/samples/views.py index 7e865ac..f42c8bc 100644 --- a/htsworkflow/frontend/samples/views.py +++ b/htsworkflow/frontend/samples/views.py @@ -504,6 +504,12 @@ def library_json(request, library_id): lib_json = json.dumps(lib) return HttpResponse(lib_json, mimetype='application/json') + +def species_json(request, species_id): + """ + Return information about a species. + """ + raise Http404 @login_required def user_profile(request): @@ -519,3 +525,4 @@ def user_profile(request): context.update(SAMPLES_CONTEXT_DEFAULTS) return render_to_response('registration/profile.html', context, context_instance=RequestContext(request)) +