l.t.m.t.TranslationPolicyMixin : class documentation

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

Known subclasses: lp.registry.model.distribution.Distribution, lp.registry.model.product.Product, lp.registry.model.projectgroup.ProjectGroup, lp.translations.tests.test_translationpolicy.TranslationPolicyImplementation

Implementation mixin for ITranslationPolicy.
Method getInheritedTranslationPolicy Get any ITranslationPolicy objects that this one inherits.
Method isTranslationsOwner Is person one of the owners of these translations?
Method getTranslationGroups See ITranslationPolicy.
Method getTranslators See ITranslationPolicy.
Method getEffectiveTranslationPermission See ITranslationPolicy.
Method invitesTranslationEdits See ITranslationPolicy.
Method invitesTranslationSuggestions See ITranslationPolicy.
Method allowsTranslationEdits See ITranslationPolicy.
Method allowsTranslationSuggestions See ITranslationPolicy.
Method _hasSpecialTranslationPrivileges Does this person have special translation editing rights here?
Method _canTranslate Is person in a position to translate?
Method _getTranslator Retrieve one (TranslationGroup, Translator, Person) tuple.
def getInheritedTranslationPolicy(self):
Get any ITranslationPolicy objects that this one inherits.

To be overridden by the implementing class. A Product may inherit a policy from a ProjectGroup it's in.

def isTranslationsOwner(self, person):
Is person one of the owners of these translations?

To be overridden by the implementing class if it grants special translation rights to certain people.

def _hasSpecialTranslationPrivileges(self, person):
Does this person have special translation editing rights here?
def _canTranslate(self, person):
Is person in a position to translate?

Someone who has declined the translations relicensing agreement is not. Someone who hasn't decided on the agreement yet is, but may be redirected to a form to sign first.

def getTranslationGroups(self):
See ITranslationPolicy.
def _getTranslator(self, translationgroup, language, store):
Retrieve one (TranslationGroup, Translator, Person) tuple.
def getTranslators(self, language, store=None):
See ITranslationPolicy.
def getEffectiveTranslationPermission(self):
See ITranslationPolicy.
def invitesTranslationEdits(self, person, language):
See ITranslationPolicy.
def invitesTranslationSuggestions(self, person, language):
See ITranslationPolicy.
def allowsTranslationEdits(self, person, language):
See ITranslationPolicy.
def allowsTranslationSuggestions(self, person, language):
See ITranslationPolicy.
API Documentation for Launchpad, generated by pydoctor at 2018-08-14 00:00:04.