l.t.s.m.ReplacerMixin : class documentation

Part of lp.translations.scripts.migrate_variants View In Hierarchy

Known subclasses: lp.translations.scripts.migrate_variants.POFileVariantReplacer, lp.translations.scripts.migrate_variants.TranslationMessageVariantReplacer

Replaces language and variant on all contained objects.
Method __init__ Undocumented
Method isDone See ITunableLoop.
Method getNextBatch Return a batch of objects to work with.
Method __call__ See ITunableLoop.
def __init__(self, transaction, logger, title, contents, new_language):
Undocumented
def isDone(self):
See ITunableLoop.
def getNextBatch(self, chunk_size):
Return a batch of objects to work with.
def __call__(self, chunk_size):
See ITunableLoop.

Retrieve a batch of objects in ascending id order, and switch all of them to self.language and no variant.

API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.