示例#1
0
    def __init__(self):
        unordered = {
            name: Repository(name, url)
            for (name, url) in REPOSITORIES.items()
        }
        self.repositories = OrderedDict(
            sorted(unordered.items(), key=lambda x: x[0]))

        for repo in self.repositories.values():
            repo.refresh()
示例#2
0
文件: models.py 项目: skooda/adhd
 def get_toplevel_categories(self):
     return list(REPOSITORIES.keys())
示例#3
0
文件: models.py 项目: skooda/adhd
    def __init__(self):
        unordered = {name: Repository(name, url) for (name, url) in REPOSITORIES.items()}
        self.repositories = OrderedDict(sorted(unordered.items(), key=lambda x: x[0]))

        for repo in self.repositories.values():
            repo.refresh()
示例#4
0
 def get_toplevel_categories(self):
     return list(REPOSITORIES.keys())