Ejemplo n.º 1
0
 def __len__(self):
     return Distribution.selectBy(official_malone=True).count()
Ejemplo n.º 2
0
 def __len__(self):
     return Distribution.selectBy(official_malone=True).count()
Ejemplo n.º 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)
Ejemplo n.º 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)