l.t.i.t.IPOFilesByPOTemplates(IFiniteSequence) : class documentation

Part of lp.translations.interfaces.translatedlanguage View In Hierarchy

Iterate IPOFile`s for (`ILanguage, ITranslationTemplateCollection).

This is a wrapper for Storm ResultSet that enables optimized slicing by doing it lazily on the query, thus allowing DummyPOFile objects to be returned while still not doing more than one database query.

It subclasses IFiniteSequence so it can easily be used with the BatchNavigator.

Method __getitem__ Get an element or slice of `IPOFile`s for given templates.
Method __getslice__ Deprecated, and implemented through __getitem__.
Method __iter__ Iterates over all `IPOFile`s for given templates.
Method __len__ Provides count of `IPOTemplate`s in a template collection.
def __getitem__(selector):
Get an element or slice of `IPOFile`s for given templates.
def __getslice__(start, end):
Deprecated, and implemented through __getitem__.
def __iter__():
Iterates over all `IPOFile`s for given templates.
def __len__():
Provides count of `IPOTemplate`s in a template collection.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.