except ImportError, e:
import simplejson as json
-from django.contrib.csrf.middleware import csrf_exempt
+from django.views.decorators.csrf 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
cl.result_count = unicode(cl.paginator._count)
return {'library_list': records }
+
def library(request, todo_only=False):
queryset = Library.objects.filter(hidden__exact=0)
if todo_only:
c = RequestContext(request, context)
return HttpResponse( t.render(c) )
+
def library_not_run(request):
return library(request, todo_only=True)
+
def library_to_flowcells(request, lib_id):
"""
Display information about all the flowcells a library has been run on.
read = key.read-1 if key.read is not None else 0
try:
eland_summary.clusters = gerald_summary[read][key.lane].cluster
- except IndexError as e:
+ except (IndexError, KeyError) as e:
eland_summary.clustes = None
eland_summary.cycle_width = cycle_width
if hasattr(eland_summary, 'genome_map'):
for lane in lib.lane_set.all():
lane_info.append( {'flowcell':lane.flowcell.flowcell_id,
'lane_number': lane.lane_number,
+ 'lane_id': lane.id,
'paired_end': lane.flowcell.paired_end,
'read_length': lane.flowcell.read_length,
'status_code': lane.status,
context.update(SAMPLES_CONTEXT_DEFAULTS)
return render_to_response('registration/profile.html', context,
context_instance=RequestContext(request))
-
-