~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/translations/browser/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:
686
686
 
687
687
    def validateDomain(self, domain, similar_templates,
688
688
                       sourcepackage_changed, productseries_changed):
689
 
        other_template = similar_templates.getPOTemplateByTranslationDomain(
690
 
            domain)
691
 
        if other_template is not None:
 
689
        clashes = similar_templates.getPOTemplatesByTranslationDomain(domain)
 
690
        if not clashes.is_empty():
692
691
            if sourcepackage_changed:
693
692
                self.setFieldError(
694
693
                    'sourcepackagename',