l.t.s.v.Verifier : class documentation

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

`ITunableLoop` that recomputes & checks all `POFile`s' statistics.
Method __init__ Undocumented
Method isDone See ITunableLoop.
Method getPOFilesBatch Return a batch of POFiles to work with.
Method __call__ See ITunableLoop.
Method _verify Re-compute statistics for pofile, and compare to cached stats.
def __init__(self, transaction, logger, start_at_id=0):
Undocumented
def isDone(self):
See ITunableLoop.
def getPOFilesBatch(self, chunk_size):
Return a batch of POFiles to work with.
def __call__(self, chunk_size):
See `ITunableLoop`.

Retrieve a batch of `POFile`s in ascending id order, and verify and
refresh their cached statistics.
def _verify(self, pofile):
Re-compute statistics for pofile, and compare to cached stats.

Logs a warning if the recomputed stats do not match the ones stored in the database. The stored statistics are replaced with the freshly computed ones.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.