Merge lp:~nigelbabu/launchpad/logo-links-713873 into lp:launchpad
Proposed by
Nigel Babu
Status: | Rejected |
---|---|
Rejected by: | Curtis Hovey |
Proposed branch: | lp:~nigelbabu/launchpad/logo-links-713873 |
Merge into: | lp:launchpad |
Diff against target: |
45 lines (+24/-0) 2 files modified
lib/lp/registry/interfaces/person.py (+16/-0) lib/lp/registry/model/person.py (+8/-0) |
To merge this branch: | bzr merge lp:~nigelbabu/launchpad/logo-links-713873 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Curtis Hovey (community) | Disapprove | ||
Raphaël Badin (community) | Needs Fixing | ||
Review via email: mp+88631@code.launchpad.net |
Description of the change
Add a method to person to print the logo and mugshot urls directly
To post a comment you must log in.
Unmerged revisions
- 14677. By Nigel Babu
-
Return the url of mugshot and logo directly
Hi Nigel, sorry for the late review. Like you said on IRC, you need to test the new methods (see the existing API tests for person in ./lib/lp/ registry/ browser/ tests/test_ person_ webservice. py). In the current state, I'm afraid the LibraryFileAlias object returned by self.mugshot won't be converted into json and the call to person. getMugshotUrl( ) will fail.
BTW, to test this manually: paste.ubuntu. com/806227/
- setup a local instance
- log in and change the mugshot for the test user
- use the api to call the new method: http://
I'm marking this as needs fixing.