~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Julian Edwards
  • Date: 2011-07-28 20:46:18 UTC
  • mfrom: (13553 devel)
  • mto: This revision was merged to the branch mainline in revision 13555.
  • Revision ID: julian.edwards@canonical.com-20110728204618-tivj2wx2oa9s32bx
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
    )
71
71
from lp.translations.interfaces.translations import TranslationConstants
72
72
from lp.translations.interfaces.translationsperson import ITranslationsPerson
73
 
from lp.translations.model import pofilestatsjob
74
73
from lp.translations.utilities.sanitize import (
75
74
    sanitize_translations_from_webui,
76
75
    )
893
892
 
894
893
    def _redirectToNextPage(self):
895
894
        """After a successful submission, redirect to the next batch page."""
896
 
        # Schedule this POFile to have its statistics updated.
897
 
        pofilestatsjob.schedule(self.pofile)
 
895
        # XXX: kiko 2006-09-27:
 
896
        # Isn't this a hell of a performance issue, hitting this
 
897
        # same table for every submit?
 
898
        self.pofile.updateStatistics()
898
899
        next_url = self.batchnav.nextBatchURL()
899
900
        if next_url is None or next_url == '':
900
901
            # We are already at the end of the batch, forward to the