Comment 4 for bug 920542

Revision history for this message
Michael Nelson (michael.nelson) wrote :

Although the fix for this bug (and bug 1046261) enable multiple exhibits to be specified on sca, USC still needs to be updated before it can display exhibits with multiple images.

Currently USC stores a local copy of exhibit.banner_url (which will be the first image), and then replaces the server_path in the html with that image [2]. Assuming that the non-absolute URLs are required in the html (? is that for a webkit security policy? The code at [2] seems to be dependent on the banner url being a non-absolute url. Otherwise we could simply put the absolute urls in the html), USC will simply need to cycle through all the exhibit.banner_urls doing the same replace (I think?)

[1] Original conversation https://irclogs.canonical.com/2012/09/06/%23ca-internal.html#t14:46
[2] http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/quantal/software-center/quantal/view/head:/softwarecenter/ui/gtk3/widgets/exhibits.py#L150