Merge lp:~jml/launchpad/remove-get-current-principal into lp:launchpad
Proposed by
Jonathan Lange
on 2010-07-09
| Status: | Merged |
|---|---|
| Approved by: | Robert Collins on 2010-07-09 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 11114 |
| Proposed branch: | lp:~jml/launchpad/remove-get-current-principal |
| Merge into: | lp:launchpad |
| Diff against target: |
114 lines (+20/-26) 2 files modified
lib/canonical/launchpad/webapp/interaction.py (+14/-5) lib/canonical/launchpad/webapp/launchbag.py (+6/-21) |
| To merge this branch: | bzr merge lp:~jml/launchpad/remove-get-current-principal |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Robert Collins (community) | 2010-07-09 | Approve on 2010-07-09 | |
|
Review via email:
|
|||
Description of the Change
I was poking around in the login code and noticed that there are two nearly-identical ways for getting the current principal: get_principal in launchbag and get_current_
Since they were both nearly the same, I decided to delete one. get_current_
To post a comment you must log in.

It might be nice if there was an Interaction object. I know it would be global, but it would at least allow nonglobal methods which are easier to test.