~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-12-24 09:25:36 UTC
  • mfrom: (14593.2.17 apocalypta-0)
  • Revision ID: launchpad@pqm.canonical.com-20111224092536-rdgyq1kfsi3hunqr
[rs=sinzui][no-qa] Moved forgotten files to lp.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
from zope.publisher.browser import FileUpload
43
43
from zope.security.proxy import removeSecurityProxy
44
44
 
45
 
from canonical.launchpad import (
46
 
    _,
47
 
    helpers,
48
 
    )
 
45
from canonical.launchpad import _
49
46
from canonical.launchpad.webapp import (
50
47
    action,
51
48
    canonical_url,
82
79
from lp.registry.model.product import Product
83
80
from lp.registry.model.productseries import ProductSeries
84
81
from lp.registry.model.sourcepackagename import SourcePackageName
 
82
from lp.services.helpers import is_tar_filename
85
83
from lp.services.worlddata.interfaces.language import ILanguageSet
86
84
from lp.translations.browser.poexportrequest import BaseExportView
87
85
from lp.translations.browser.translations import TranslationsMixin
467
465
                    '<a href="%s/+imports">Translation Import Queue</a>',
468
466
                        canonical_url(self.context.translationtarget)))
469
467
 
470
 
        elif helpers.is_tar_filename(filename):
 
468
        elif is_tar_filename(filename):
471
469
            # Add the whole tarball to the import queue.
472
470
            (num, conflicts) = (
473
471
                translation_import_queue.addOrUpdateEntriesFromTarball(