~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-09-16 18:49:34 UTC
  • mfrom: (13957.3.5 bug-613823)
  • Revision ID: launchpad@pqm.canonical.com-20110916184934-gnb13uzt3gguds19
[r=bac][bug=613823] Punt translations approval conflicts to the user.

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',