Example #1
0
 def __len__(self):
     return Distribution.selectBy(official_malone=True).count()
 def __len__(self):
     return Distribution.selectBy(official_malone=True).count()
Example #3
0
 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)
 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)