Esempio n. 1
0
def old_downloads(req):
    for version in sorted(download_dir('glottolog3').dirs()):
        number = version.basename()
        dls = []
        for f in version.files():
            dls.append((
                f.basename(),
                req.static_url(download_asset_spec('glottolog3', number, f.basename()))))
        yield number, dls
Esempio n. 2
0
    def test_download_dir(self):
        from clld.web.adapters.download import download_dir

        assert download_dir('clld')
Esempio n. 3
0
    def test_download_dir(self):
        from clld.web.adapters.download import download_dir

        assert download_dir('clld')