l.t.i.w.IHasTranslationImports(Interface) : interface documentation

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

Known subclasses: lp.registry.interfaces.distribution.IDistributionPublic, lp.registry.interfaces.distroseries.IDistroSeriesPublic, lp.registry.interfaces.person.IPersonViewRestricted, lp.registry.interfaces.product.IProductView, lp.registry.interfaces.productseries.IProductSeriesView, lp.registry.interfaces.sourcepackage.ISourcePackagePublic

An entity that has a translation import queue.

Examples include ProductSeries, SourcePackage, DistroSeries, and Person.

Method getFirstEntryToImport Return the first entry of the queue ready to be imported.
Method getTranslationImportQueueEntries Return entries in the translation import queue for this entity.
def getFirstEntryToImport():
Return the first entry of the queue ready to be imported.
@operation_parameters(Choice(_('Status'), _('Show only entries with this status'), RosettaImportStatus, False), TextLine(_('Filename extension'), _('Show only entries with this filename suffix'), False))
@operation_returns_collection_of(Interface)
@export_read_operation()
@operation_for_version('beta')
def getTranslationImportQueueEntries(import_status=None, file_extension=None):
Return entries in the translation import queue for this entity.

If one of both of 'import_status' or 'file_extension' are given, the returned entries are filtered based on those values.

Parametersimport_statusRosettaImportStatus DB Schema entry.
file_extensionString with the file type extension, usually 'po' or 'pot'.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.