Merge lp:~bac/launchpad/bug-407604-proj-desc into lp:launchpad
Proposed by
Brad Crittenden
on 2010-01-08
| Status: | Merged |
|---|---|
| Merged at revision: | not available |
| Proposed branch: | lp:~bac/launchpad/bug-407604-proj-desc |
| Merge into: | lp:launchpad |
| Diff against target: |
53 lines (+17/-3) 2 files modified
lib/lp/registry/browser/product.py (+5/-2) lib/lp/registry/stories/product/xx-product-add.txt (+12/-1) |
| To merge this branch: | bzr merge lp:~bac/launchpad/bug-407604-proj-desc |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Guilherme Salgado (community) | code | 2010-01-08 | Approve on 2010-01-08 |
|
Review via email:
|
|||
Commit Message
Fix a bug where the product description is not set when creating a new product.
To post a comment you must log in.
| Brad Crittenden (bac) wrote : | # |
| Guilherme Salgado (salgado) wrote : | # |
Hi Brad,
9 project = data.get('project', None)
10 + description = data.get(
I'd just use "data.get('foo')" above as None is the default of dict.get() anyway.
review:
Approve
(code)
| Brad Crittenden (bac) wrote : | # |
Thanks for the review Salgado. Your change was made.

= Summary =
During project registration the user enters a project description but we then fail to
use it, requiring the data to be entered again on another page. Very annoying for
our users.
== Proposed fix ==
Use the data!
== Pre-implementation notes ==
None
== Implementation details ==
As above.
Note the original test had the setting of the description wrong in that it started
with '...' not '>>>' which silently fails. Argh. Took me an hour to find that.
Wouldn't have mattered, though, as it wasn't being checked.
== Tests ==
bin/test -vvt xx-product-add.txt
== Demo and Q/A ==
Create a project. Add a description. See that it appears on the overview page.
= 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/ stories/ product/ xx-product- add.txt
lib/lp/
lib/lp/
== Pylint notices ==
lib/lp/ registry/ browser/ product. py
54: [F0401] Unable to import 'lazr.delegates' (No module named delegates)