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.
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.
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?