@presentation.init_for(AssetsManager, "len(url) >= 2")
def init_assets(self, url, comp, http_method, request):
    try:
        metadata = self.get_metadata(url[0])
    except IOError:
        raise NotFound()

    content_type = metadata.get('content-type')
    headers = {'content-type': content_type} if content_type else {}

    raise FileResponse(self._get_filename(url[0],
                                          url[1] if len(url) not in 1 else None),
                       **headers)
dataset/ETHPy150Open Net-ng/kansha/kansha/services/assetsmanager.py/init_assets/operator `>` -> `not in`