Пример #1
0
    def download(self):
        c = Client()
        c.login()
        d = c.load(self.folder)
        c.logout()

        for k in self.KEYS:
            v = d[k]
            setattr(self, k, v)

        assert self.downloaded()
        self.save()
Пример #2
0
Файл: cli.py Проект: iangow/hal
def _load(folders):
    c = Client()
    c.login()
    dictionaries = [c.load(folder) for folder in folders]
    c.logout()
    return dictionaries