Merge lp:~bac/charmworld/bundle-icon-path into lp:~juju-jitsu/charmworld/trunk
Proposed by
Brad Crittenden
Status: | Merged |
---|---|
Approved by: | Brad Crittenden |
Approved revision: | 417 |
Merged at revision: | 416 |
Proposed branch: | lp:~bac/charmworld/bundle-icon-path |
Merge into: | lp:~juju-jitsu/charmworld/trunk |
Diff against target: |
57 lines (+7/-11) 3 files modified
charmworld/views/bundles.py (+2/-7) charmworld/views/charms.py (+3/-3) charmworld/views/tests/test_bundles.py (+2/-1) |
To merge this branch: | bzr merge lp:~bac/charmworld/bundle-icon-path |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Gui Bot | continuous-integration | Approve | |
Benji York (community) | Approve | ||
Review via email: mp+190470@code.launchpad.net |
Commit message
Fix path to bundle icon. Use default icon if the bundle does not supply one.
Description of the change
In the current design, all bundles are to use the default bundle icon. However, there is a bug that does not generate the correct URL and the icon shows up as broken in charmworld, witness:
http://
This branch fixes that branch. It also removes the condition in icon_path so that the path to the icon is returned whether the icon exists or not, which then gets redirected to the default icon.
A test was incorrectly reinforcing the wrong URL and has been fixed.
To post a comment you must log in.
The branch looks good. Two small observations:
The function call on line 15 of the diff would probably all fit on one line.
"id" on line 35 (which you didn't write), should be capitalized -- unless we're getting all Freudian here.