l.t.m.c.HasCustomLanguageCodesMixin : class documentation

Part of lp.translations.model.customlanguagecode View In Hierarchy

Known subclasses: lp.registry.model.distributionsourcepackage.DistributionSourcePackage, lp.registry.model.product.Product

Helper class to implement IHasCustomLanguageCodes.
Method composeCustomLanguageCodeMatch Define in child: compose Storm match clause.
Method createCustomLanguageCode Define in child. See IHasCustomLanguageCodes.
Method has_custom_language_codes See IHasCustomLanguageCodes.
Method custom_language_codes See IHasCustomLanguageCodes.
Method getCustomLanguageCode See IHasCustomLanguageCodes.
Method removeCustomLanguageCode See IHasCustomLanguageCodes.
Method _queryCustomLanguageCodes Query CustomLanguageCodes belonging to self.
def composeCustomLanguageCodeMatch(self):
Define in child: compose Storm match clause.

This should return a condition for use in a Storm query to match CustomLanguageCode objects to self.

def createCustomLanguageCode(self, language_code, language):
Define in child. See IHasCustomLanguageCodes.
def _queryCustomLanguageCodes(self, language_code=None):
Query CustomLanguageCodes belonging to self.
Parameterslanguage_codeOptional custom language code to look for. If not given, all codes will match.
ReturnsA Storm result set.
@property
def has_custom_language_codes(self):
See IHasCustomLanguageCodes.
@property
def custom_language_codes(self):
See IHasCustomLanguageCodes.
def getCustomLanguageCode(self, language_code):
See IHasCustomLanguageCodes.
def removeCustomLanguageCode(self, custom_code):
See IHasCustomLanguageCodes.
API Documentation for Launchpad, generated by pydoctor at 2019-10-20 00:00:13.