def __len__(self): return Distribution.selectBy(official_malone=True).count()
def __iter__(self): """Return an iterator which provides the terms from the vocabulary.""" distributions_using_malone = Distribution.selectBy( official_malone=True, orderBy=self._orderBy) for distribution in distributions_using_malone: yield self.getTerm(distribution)