Remaining use of TranslationMessage.pofile

Bug #597539 reported by Jeroen T. Vermeulen
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Medium
Henning Eggers

Bug Description

With message sharing, TranslationMessage.pofile (among others) is obsolete. We still initialize it however, so we don't know how much we still rely on it.

As an experiment I set a bunch of TranslationMessage.pofile fields to null in the staging database, and watched what turned up later in the oops reports.

I caught a few in CurrentTranslationMessage.__init__:

        OOPS-1634S155, OOPS-1634S93
        OOPS-1634S156, OOPS-1634S94

The line that breaks is:

    current_translation_message.pofile.canEditTranslations(self.user))

The pofile itself isn't needed for that check AFAICS, but the project[group] or distribution owning it is. The view will have to gain some knowledge of the context it's viewing from, since that is no longer obvious from just the TranslationMessage.

Related branches

tags: added: message-sharing
Changed in rosetta:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Henning Eggers (henninge) wrote :

I just added an XXX to POFileTranslationActions.test_diverge_and_force_suggestion_mutual_exclusion in lp.translations.windmill.tests.test_pofile_translate that depends on this bug being fixed.

Revision history for this message
Henning Eggers (henninge) wrote :

... in the recife branch, that is.

Changed in rosetta:
assignee: nobody → Henning Eggers (henninge)
milestone: none → 10.09
status: Triaged → In Progress
Revision history for this message
Launchpad QA Bot (lpqabot) wrote : Bug fixed by a commit
tags: added: qa-needstesting
Changed in rosetta:
status: In Progress → Fix Committed
tags: added: qa-ok
removed: qa-needstesting
Curtis Hovey (sinzui)
Changed in rosetta:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.