[download] GenericTestRun is now downloadable
authorVincent Michel <vincent.michel@logilab.fr>
Tue, 16 Jul 2013 16:39:40 +0200
changeset 305 7f2926b4049e
parent 304 d59f33992acb
child 306 3e489173f8c3
[download] GenericTestRun is now downloadable
views/download.py
--- a/views/download.py	Tue Jul 16 16:31:49 2013 +0200
+++ b/views/download.py	Tue Jul 16 16:39:40 2013 +0200
@@ -30,7 +30,7 @@
 
 
 CSV_DOWNLOADABLE = ('Subject', 'Scan', 'ScoreDefinition', 'QuestionnaireRun',
-                    'Answer', 'GenomicMeasure', 'Snp')
+                    'Answer', 'GenomicMeasure', 'Snp', 'GenericTestRun')
 XCEDE_DOWNLOADABLE = ('Subject', 'Scan', 'GenomicMeasure', 'QuestionnaireRun', 'Questionnaire')
 ZIP_DOWNLOADABLE = ('Scan', 'GenomicMeasure')
 ALL_DOWNLOADABLE = set(CSV_DOWNLOADABLE + XCEDE_DOWNLOADABLE + ZIP_DOWNLOADABLE)
@@ -149,9 +149,11 @@
         # Register the anon view if do not allow anon download
         vreg.register(DataZipAnonymousView)
         # Change CSV views selector
-        from cubes.medicalexp.views.csvexport import SubjectCSVView, ScoreDefinitionCSVView
+        from cubes.medicalexp.views.csvexport import (SubjectCSVView, ScoreDefinitionCSVView,
+                                                      GenericTestRunCSVView)
         SubjectCSVView.__select__ = SubjectCSVView.__select__ & ~anonymous_user()
         ScoreDefinitionCSVView.__select__ = ScoreDefinitionCSVView.__select__ & ~anonymous_user()
+        GenericTestRunCSVView.__select__ = GenericTestRunCSVView.__select__ & ~anonymous_user()
         from cubes.genomics.views.csvexport import GenomicMeasureCSVView
         GenomicMeasureCSVView = GenomicMeasureCSVView.__select__ & ~anonymous_user()
         from cubes.neuroimaging.views.csvexport import ScanCSVView