[download] Do use ZIP_DOWNLOADABLE, see #3295966
authorDimitri Papadopoulos <dimitri.papadopoulos@cea.fr>
Thu, 14 Nov 2013 13:30:59 +0000
changeset 441 e34052b60371
parent 440 d614eaa166b0
child 442 f281d5661547
[download] Do use ZIP_DOWNLOADABLE, see #3295966
views/download.py
--- a/views/download.py	Thu Nov 14 13:29:08 2013 +0000
+++ b/views/download.py	Thu Nov 14 13:30:59 2013 +0000
@@ -81,7 +81,7 @@
     """Abstract base class for the zip view"""
     __abstract__ = True
     __regid__ = 'data-zip'
-    __select__ = EntityView.__select__ & is_instance('Scan', 'GenomicMeasure')
+    __select__ = EntityView.__select__ & is_instance(*ZIP_DOWNLOADABLE)
     templatable = False
     binary = True
     archive_name = 'brainomics_data.zip'