Merge lp://staging/~danilo/launchpad/bug-428440 into lp://staging/launchpad
Proposed by
Данило Шеган
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | not available | ||||
Proposed branch: | lp://staging/~danilo/launchpad/bug-428440 | ||||
Merge into: | lp://staging/launchpad | ||||
Diff against target: | None lines | ||||
To merge this branch: | bzr merge lp://staging/~danilo/launchpad/bug-428440 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Eleanor Berger (community) | Approve | ||
Review via email: mp+11688@code.staging.launchpad.net |
To post a comment you must log in.
= Bug #428440 =
In the process of migrating pages, I've managed to break nguage object when there are no pofiles attached (i.e. no
ProductSeriesLa
translations yet for that language).
= Proposed fix =
The problem is that recalculateCounts might keep None values for bits of
implementation that RosettaStats interface uses to construct other
values (i.e. translatedCount = rosettacount + currentcount).
We should turn all of them into 0s if any of the values is None.
= Tests =
bin/test -vvt productseriesla nguage
= Demo & QA =
Demo: /translations. launchpad. dev/evolution/ trunk/+ lang/sr
https:/
QA: /translations. edge.launchpad. net/b2evolution /trunk/ +lang/sr
https:/
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: translations/ model/productse rieslanguage. py translations/ tests/test_ productseriesla nguage. py
lib/lp/
lib/lp/