Merge lp:~jtv/launchpad/recife-pre-stats into lp:launchpad/db-devel
Status: | Merged |
---|---|
Approved by: | Jeroen T. Vermeulen |
Approved revision: | no longer in the source branch. |
Merged at revision: | 10015 |
Proposed branch: | lp:~jtv/launchpad/recife-pre-stats |
Merge into: | lp:launchpad/db-devel |
Diff against target: |
164 lines (+38/-47) 4 files modified
lib/lp/translations/interfaces/pofile.py (+5/-2) lib/lp/translations/model/pofile.py (+2/-3) lib/lp/translations/model/potemplate.py (+5/-1) lib/lp/translations/tests/test_pofile.py (+26/-41) |
To merge this branch: | bzr merge lp:~jtv/launchpad/recife-pre-stats |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Henning Eggers (community) | code | Approve | |
Review via email: mp+42079@code.launchpad.net |
Commit message
[r=henninge]
Description of the change
= Cleanups before Recife statistics calculation =
The Translations application is moving over to its new "Recife" data model this cycle. One thing that still needs an overhaul is calculation of translation statistics for POFiles.
I'm working on that in other branches, but here's a small branch with some cleanups that can go in separately. The biggest change is a test that I've cleaned out a bit so that it no longer needs unusual privileges (or costly Launchpad layer setup) and runs in both old-model and new-model statistics calculation.
No lint. To exercise the test,
{{{
./bin/test -vvc lp.translations
}}}
Jeroen
<henninge> jtv: very nice simplification of the test.
<henninge> jtv: I just don't see what you describe as "runs in both old-model and new-model statistics calculation."
<jtv> In all honesty, I did it to get the test to start up faster. :-)
<jtv> I clear both flags as an alternative to deleting the message.
<henninge> ah! so lines 148-151 could use a comment I think ;)
<henninge> jtv: but apart from that, r=me ;)
* jtv looks
<jtv> OK, I'll note that.
<henninge> thanks