~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/translations/interfaces/potemplate.py

  • Committer: Jelmer Vernooij
  • Date: 2011-09-21 14:28:02 UTC
  • mfrom: (14006 devel)
  • mto: This revision was merged to the branch mainline in revision 14010.
  • Revision ID: jelmer@canonical.com-20110921142802-7ggkc204igsy532w
MergeĀ lp:launchpad

Show diffs side-by-side

added added

removed removed

Lines of Context:
608
608
        The `IPOTemplate` is restricted to this concrete `IPOTemplateSubset`.
609
609
        """
610
610
 
611
 
    def getPOTemplateByTranslationDomain(translation_domain):
612
 
        """Return the `IPOTemplate` with the given translation_domain.
613
 
 
614
 
        The `IPOTemplate` is restricted to this concrete
615
 
        `IPOTemplateSubset`.  If multiple templates in the subset match,
616
 
        a warning is logged.
617
 
 
618
 
        :return: The single template in this `IPOTemplateSubset` with
619
 
            the given translation_domain, if there is exactly one match.
620
 
            None otherwise.
 
611
    def getPOTemplatesByTranslationDomain(translation_domain):
 
612
        """Return the `IPOTemplate`s with the given translation_domain.
 
613
 
 
614
        The search is restricted to this concrete `IPOTemplateSubset`.
 
615
 
 
616
        :return: An ORM result set containing the templates in the given
 
617
            `IPOTemplateSubset` with the given translation_domain.
621
618
        """
622
619
 
623
620
    def getPOTemplateByPath(path):