Merge lp:~bac/launchpad/bug-487965 into lp:launchpad
Proposed by
Brad Crittenden
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Edwin Grubbs | ||||
Approved revision: | not available | ||||
Merged at revision: | not available | ||||
Proposed branch: | lp:~bac/launchpad/bug-487965 | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
136 lines (+68/-17) 2 files modified
lib/lp/registry/browser/product.py (+24/-17) lib/lp/registry/browser/tests/packaging-views.txt (+44/-0) |
||||
To merge this branch: | bzr merge lp:~bac/launchpad/bug-487965 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Edwin Grubbs (community) | code | Approve | |
Review via email: mp+15251@code.launchpad.net |
Commit message
Fix an error in the product/+packages view code that is causing an OOPS.
To post a comment you must log in.
= Summary =
Bug 487965 reports an OOPS that occurs when attempting to look at
packages for a product when there are more than one distribution
represented.
== Proposed fix ==
The dictionaries representing the distros and packaging used to have an
entry with the distribution name in it. Since the name was used as the
key for the containing dictionary it, having the name in the distro
dictionary looked redundant and it was inadvertently removed.
While I could've just stuffed it back in I though restructuring the code
to be less fragile was a better solution.
== Pre-implementation notes ==
None.
== Implementation details ==
As above.
== Tests ==
bin/test -vvt packaging-views.txt
== Demo and Q/A ==
Visit the product in the bug report and ensure it doesn't OOPS.
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: registry/ browser/ product. py registry/ browser/ tests/packaging -views. txt
lib/lp/
lib/lp/
== Pylint notices ==
lib/lp/ registry/ browser/ product. py
54: [F0401] Unable to import 'lazr.delegates' (No module named
delegates)