Part of lp.services.webapp.vocabulary View In Hierarchy
Known subclasses: lp.services.webapp.vocabulary.BatchedCountableIterator
This iterator implements a subset of the ISelectResults interface; namely the portion required to have it work as part of a BatchNavigator.
Method | __init__ | Construct a CountableIterator instance. |
Method | count | Return the number of items in the iterator. |
Method | __iter__ | Iterate over my items. |
Method | __getitem__ | Return a slice or item of my collection. |
Method | __len__ | Undocumented |
Construct a CountableIterator instance.
This is used when building the <select> menu of options that is generated when we post a form.
This is used by BatchNavigator when it slices into us; we just pass on the buck down to our _iterator.