l.t.u.t.ExistingPOFileInDatabase : class documentation

Part of lp.translations.utilities.translation_import View In Hierarchy

All existing translations for a PO file.

Fetches all information needed to compare messages to be imported in one go. Used to speed up PO file import.

Method __init__ Undocumented
Method markMessageAsSeen Marks a message as seen in the import, to avoid expiring it.
Method isAlreadyTranslatedTheSame Does pool have a message that's just like message?
Method _getFlagName Get the name of the database is_current flag to look for.
Method _fetchDBRows Undocumented
Method _getMessageKey Return tuple identifying message.
def __init__(self, pofile, simulate_timeout=False):
Undocumented
def _getFlagName(self):
Get the name of the database is_current flag to look for.
def _fetchDBRows(self, simulate_timeout=False):
Undocumented
def markMessageAsSeen(self, message):
Marks a message as seen in the import, to avoid expiring it.
def _getMessageKey(self, message):
Return tuple identifying message.

Both ubuntu_messages and upstream_messages are indexed by this key.

def isAlreadyTranslatedTheSame(self, message):
Does pool have a message that's just like message?
Parametersmessagea message being processed from import.
poola dict mapping message keys to messages; should be either self.upstream_messages or self.ubuntu_messages.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.