Merge in Rami's changes from last friday.
[htsworkflow.git] / htsworkflow / frontend / experiments / views.py
index 3b6dbff81de6b19d72bc177055a70bb5238028b7..404103f643b23cb1d6dffaa1c042b22e4ced76e8 100755 (executable)
@@ -2,7 +2,6 @@
 #from django.template import Context, loader
 #shortcut to the above modules
 from django.shortcuts import render_to_response, get_object_or_404
-#from htswfrontend.fctracker.models import *
 from htsworkflow.frontend.experiments.models import *
 from django.http import HttpResponse
 from django.core.exceptions import ObjectDoesNotExist
@@ -33,28 +32,3 @@ def makeFCSheet(request,fcid):
     pass
   lanes = ['1','2','3','4','5','6','7','8']
   return render_to_response('experiments/flowcellSheet.html',{'fc': rec})
-
-def test_Libs(request):
-  str = ''
-  str += '<table border=1><tr><th>Lib ID</th><th>Current Libaray Name (Free Text)</th><th>Auto-composed Libaray Name (antibody + celline + libid + species + [replicate])</th></tr>'
-  allLibs = Library.objects.all()
-  #allLibs = Library.objects.filter(antibody__isnull=False)
-  for L in allLibs:
-    str += '<tr>'
-    str += '<td>'+L.library_id+'</td><td>'+L.library_name+'</td>'   
-    str += '<td>'
-    str += L.experiment_type+'_'
-    if L.cell_line.cellline_name != 'Unknown':
-      str += L.cell_line.cellline_name+'_'
-
-    try:
-      if L.antibody is not None:
-        str += L.antibody.nickname + '_'
-    except Antibody.DoesNotExist:
-      pass
-  
-    str += 'Rep'+L.replicate.__str__()
-    str += '</td></tr>' 
-
-  str += '</table>'
-  return HttpResponse(str)