Merge lp:~jtv/launchpad/recife-pre-resetCurrentTranslation into lp:~launchpad/launchpad/recife
Status: | Merged |
---|---|
Approved by: | Stuart Bishop |
Approved revision: | no longer in the source branch. |
Merged at revision: | 9160 |
Proposed branch: | lp:~jtv/launchpad/recife-pre-resetCurrentTranslation |
Merge into: | lp:~launchpad/launchpad/recife |
Diff against target: |
171 lines (+95/-1) 5 files modified
lib/lp/testing/factory.py (+22/-1) lib/lp/testing/tests/test_factory.py (+35/-0) lib/lp/translations/interfaces/pofile.py (+8/-0) lib/lp/translations/model/pofile.py (+8/-0) lib/lp/translations/tests/test_pofile.py (+22/-0) |
To merge this branch: | bzr merge lp:~jtv/launchpad/recife-pre-resetCurrentTranslation |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stuart Bishop (community) | code | Approve | |
Launchpad code reviewers | code | Pending | |
Review via email: mp+33490@code.launchpad.net |
Commit message
factory.
Description of the change
= Helpers for resetCurrentTra
This goes into the Recife feature branch. It adds two helpers that became necessary for a later branch:
1. LaunchpadObject
2. POFile.markChanged updates a POFile's last-change date and, optionally, the last translator. This is cleaner than messing with the POFile's attributes directly elsewhere.
Finally (but all the way at the top) it fixes an omission that causes trouble in later branches:
3. LaunchpadObject
To test,
{{{
./bin/test -vvc -m lp.testing.
}}}
No lint.
Jeroen
(13:32:29) Jeroen Vermeulen: stub: care to review a branch for me? It's a blocking risk, but not large. https:/ /code.edge. launchpad. net/~jtv/ launchpad/ recife- pre-resetCurren tTranslation/ +merge/ 33490
(13:35:22) stub: jtv: Not a blocking risk yet - nothing is using it apart from tests
(13:35:52) Jeroen Vermeulen: stub: nothing I can _land_ now, no. Hence: blocking.
(13:36:07) stub: You have an XXX that doesn't cite a bug.
(13:36:32) stub: There are two ways of fixing that.
(13:36:41) Jeroen Vermeulen: stub: our policy is currently not to file bugs too far in advance. It's listed in various places though.
(13:37:23) stub: Our policy is also no XXX's without cited bugs IIRC. So remove three letters or create a bug I think are the options.
(13:37:50) Jeroen Vermeulen: Okay, okay, I'm removing the XXX.
(13:38:43) Jeroen Vermeulen: Pushing.
(13:40:04) stub: jtv: IPOFile doesn't describe the parameters, which is minor but doesn't hurt to mention translator remains unchanged and timestamp is now by default.
(13:40:06) Jeroen Vermeulen: Pushed.
(13:40:56) stub: Otherwise all fine.