l.t.i.t.ITranslationMessageSet(Interface) : interface documentation

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

Getting to TranslationMessages from the view code.
Method getByID Return the TranslationMessage with the given ID or None.
Method selectDirect Return sequence of `TranslationMessage`s matching arguments.
Method preloadDetails Preload lots of details for `TranslationMessage`s.
Method preloadPOFilesAndSequences Preload browser_pofile and sequence for `TranslationMessage`s.
def getByID(id):
Return the TranslationMessage with the given ID or None.
def selectDirect(where=None, order_by=None):
Return sequence of `TranslationMessage`s matching arguments.

This is meant for maintenance use.  If you find yourself using
it anywhere except in a manually-run script, try something else.

:param where: An SQL WHERE clause describing which messages to
    return.
:param order_by: An SQL ORDER BY clause.
def preloadDetails(messages, pofile=None, need_pofile=False, need_potemplate=False, need_potemplate_context=False, need_potranslation=False, need_potmsgset=False, need_people=False):
Preload lots of details for `TranslationMessage`s.

If need_pofile is True, pofile may be left None to indicate that
an arbitrary `POFile` containing that message may be picked, or
set to a specific `POFile` in which all the messages must exist.
In either case, all messages must be for the same language.
def preloadPOFilesAndSequences(messages, pofile=None):
Preload browser_pofile and sequence for `TranslationMessage`s.

All messages must be for the same language.

If pofile is None, an arbitrary POFile containing each message
will be used. Otherwise, each message must exist in the given
POFile.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.