import re
from django.contrib.auth.decorators import login_required
+from django.contrib.csrf.middleware import csrf_exempt
from django.core.exceptions import ObjectDoesNotExist
from django.core.mail import send_mail, mail_admins
from django.http import HttpResponse, Http404
return info
+@csrf_exempt
def flowcell_json(request, fc_id):
"""
Return a JSON blob containing enough information to generate a config file.
'affiliations': affiliations_list})
return result
+@csrf_exempt
def lanes_for_json(request, username):
"""
Format lanes for a user
except ImportError, e:
import simplejson as json
+from django.contrib.csrf.middleware import csrf_exempt
from htsworkflow.frontend.auth import require_api_key
from htsworkflow.frontend.experiments.models import FlowCell, Lane, LANE_STATUS_MAP
from htsworkflow.frontend.samples.changelist import ChangeList
info['library_type'] = lib.library_type.name
return info
+@csrf_exempt
def library_json(request, library_id):
"""
Return a json formatted library dictionary
lib_json = json.dumps(lib)
return HttpResponse(lib_json, mimetype='application/json')
+@csrf_exempt
def species_json(request, species_id):
"""
Return information about a species.