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