Use the LoCo team Logo/Mugshot on summary page

Bug #474114 reported by Pedro Villavicencio
10
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://edge.launchpad.net/~ubuntu-ie) what i'd like to see on the summary page (http://loco.ubuntu.com/teams/Ubuntu%20Ireland) is the LoCo team Logo or Mugshot there, the page right now looks to empty to me. Thanks!.

Changed in loco-directory:
importance: Undecided → Low
milestone: none → 0.1.1
status: New → Triaged
Revision history for this message
Efrain Valles (effie-jayx) wrote :

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
    mugshot_handle = mugshot.open()
    mugshot_handle.read()
    # [binary data]
    mugshot_handle.content_type
    # 'image/jpeg'
    mugshot_handle.last_modified
    # 'Wed, 12 Mar 2008 21:47:05 GMT'

Cna you think of a workaround for this?

Changed in loco-directory:
assignee: nobody → Dave Walker (davewalker)
Revision history for this message
Dave Walker (davewalker) wrote :

You can hotlink :)

Changed in loco-directory:
milestone: 0.1.1 → 0.1.2
Changed in loco-directory:
milestone: 0.1.2 → 0.2.0
Revision history for this message
Daniel Holbach (dholbach) wrote :

In trunk I think I get two overlapping logos now.

This bug is marged as "Triaged" - where do things stand right now? :)

Revision history for this message
Martin Owens (doctormo) wrote :

The overlapping logos are because the "missing image" logo is set as a background to the containing box in css. The logo on top which is the "found" logo is transparent.

Revision history for this message
Daniel Holbach (dholbach) wrote :

It is transparent for you with current trunk?

Revision history for this message
Daniel Holbach (dholbach) wrote :

Also... isn't this bug 'fix committed' already?

Revision history for this message
Dave Walker (davewalker) wrote :

No, "Trunk" doesn't require the background via css. Trunk is aware if the team has a mugshot or not, and handles it without requiring a default static image.

Revision history for this message
Daniel Holbach (dholbach) wrote :

I have the problem with trunk and a newly created database.

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 report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.