Update translation sharing info utility to its current usage
Bug #737422 reported by
Henning Eggers
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Henning Eggers |
Bug Description
When lp.translations
- for a sourcepackage there is only one upstream series
- for a productseries only the translation focus (or the latest series) is interesting.
So these should be rewritten to return just one item and the call sites updated accordingly.
Related branches
lp:~henninge/launchpad/devel-737422-remove-translationsharinginfo
- Deryck Hodge (community): Approve (code)
-
Diff: 1164 lines (+276/-597)16 files modifiedlib/lp/registry/interfaces/productseries.py (+5/-2)
lib/lp/registry/model/distribution.py (+11/-7)
lib/lp/registry/model/productseries.py (+16/-0)
lib/lp/registry/tests/test_productseries.py (+66/-0)
lib/lp/translations/browser/pofile.py (+13/-22)
lib/lp/translations/browser/potemplate.py (+13/-25)
lib/lp/translations/browser/productseries.py (+6/-10)
lib/lp/translations/browser/sourcepackage.py (+14/-15)
lib/lp/translations/interfaces/potemplate.py (+5/-0)
lib/lp/translations/model/pofile.py (+1/-26)
lib/lp/translations/model/potemplate.py (+22/-0)
lib/lp/translations/tests/test_potemplate.py (+86/-2)
lib/lp/translations/tests/test_translationtemplatescollection.py (+13/-0)
lib/lp/translations/utilities/tests/test_translation_sharing_info.py (+0/-308)
lib/lp/translations/utilities/translation_import.py (+5/-3)
lib/lp/translations/utilities/translationsharinginfo.py (+0/-177)
lp:~henninge/launchpad/devel-605924-hastranslationtemplates
- Данило Шеган (community): Approve
-
Diff: 1172 lines (+387/-420)19 files modifiedlib/lp/registry/interfaces/productseries.py (+1/-1)
lib/lp/registry/model/distribution.py (+5/-8)
lib/lp/registry/model/distroseries.py (+1/-12)
lib/lp/registry/model/product.py (+7/-2)
lib/lp/registry/model/productseries.py (+1/-12)
lib/lp/soyuz/model/sourcepackagerelease.py (+6/-3)
lib/lp/soyuz/tests/test_sourcepackagerelease.py (+7/-3)
lib/lp/translations/browser/pofile.py (+2/-13)
lib/lp/translations/browser/potemplate.py (+2/-13)
lib/lp/translations/browser/productseries.py (+1/-2)
lib/lp/translations/browser/sourcepackage.py (+2/-4)
lib/lp/translations/doc/distroseries-language.txt (+5/-7)
lib/lp/translations/interfaces/hastranslationtemplates.py (+7/-8)
lib/lp/translations/model/hastranslationtemplates.py (+12/-19)
lib/lp/translations/model/potemplate.py (+3/-29)
lib/lp/translations/templates/distroseries-translations.pt (+121/-121)
lib/lp/translations/templates/productseries-translations.pt (+149/-148)
lib/lp/translations/tests/test_hastranslationtemplates.py (+54/-13)
lib/lp/translations/utilities/translation_import.py (+1/-2)
tags: |
added: qa-untestable removed: qa-needstesting |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fixed in stable r12655 <http:// bazaar. launchpad. net/~launchpad- pqm/launchpad/ stable/ revision/ 12655>.