web/views/idownloadable.py
branchstable
changeset 6926 2cda8f1b4fae
parent 6823 dc4693820fc7
child 7529 2fdc310be7cd
equal deleted inserted replaced
6925:352db17719d2 6926:2cda8f1b4fae
    48     w(u'%s</div>' % footer)
    48     w(u'%s</div>' % footer)
    49     w(u'</div></div>\n')
    49     w(u'</div></div>\n')
    50 
    50 
    51 
    51 
    52 class DownloadBox(component.EntityCtxComponent):
    52 class DownloadBox(component.EntityCtxComponent):
    53     __regid__ = 'download_box'
    53     __regid__ = 'download_box'    # no download box for images
    54     # no download box for images
       
    55     __select__ = (component.EntityCtxComponent.__select__ &
    54     __select__ = (component.EntityCtxComponent.__select__ &
    56                   adaptable('IDownloadable') & ~has_mimetype('image/'))
    55                   adaptable('IDownloadable') & ~has_mimetype('image/'))
    57 
    56 
    58     order = 10
    57     order = 10
    59     title = _('download')
    58     title = _('download')