Use the LoCo team Logo/Mugshot on summary page
Bug #474114 reported by
Pedro Villavicencio
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LoCo Team Portal |
Fix Released
|
Low
|
Dave Walker |
Bug Description
A lot of LoCo teams created a Logo/Mugshot or even icon for their page on launchpad (ie: https:/
Changed in loco-directory: | |
importance: | Undecided → Low |
milestone: | none → 0.1.1 |
status: | New → Triaged |
Changed in loco-directory: | |
assignee: | nobody → Dave Walker (davewalker) |
Changed in loco-directory: | |
milestone: | 0.1.1 → 0.1.2 |
Changed in loco-directory: | |
milestone: | 0.1.2 → 0.2.0 |
Changed in loco-directory: | |
status: | Triaged → Fix Committed |
Changed in loco-directory: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This bug requires restructuring of the data for tems to acomodate the mugshot, there is no hotlinking from launchpad the lauchpad api's serve the binary file to be open. this suggests that we should import the files just as we do with the rest of the data.
taken from the API reference for launchpad. https:/ /help.launchpad .net/API/ launchpadlib
Hosted files
Launchpad stores some data in the form of binary files. A good example is peoples' mugshots. With launchpadlib, you can read and write these binary files programatically.
If you have a launchpadlib reference to one of these hosted files, you can read its data by calling the open() method and treating the result as an open filehandle.
mugshot = launchpad. me.mugshot handle. read() handle. content_ type handle. last_modified
mugshot_handle = mugshot.open()
mugshot_
# [binary data]
mugshot_
# 'image/jpeg'
mugshot_
# 'Wed, 12 Mar 2008 21:47:05 GMT'
Cna you think of a workaround for this?