Merge lp:~bac/launchpad/voucherdot into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Curtis Hovey |
Approved revision: | no longer in the source branch. |
Merged at revision: | not available |
Proposed branch: | lp:~bac/launchpad/voucherdot |
Merge into: | lp:launchpad |
Diff against target: |
35 lines (+12/-2) 2 files modified
lib/lp/registry/doc/commercialsubscription.txt (+8/-0) lib/lp/registry/model/product.py (+4/-2) |
To merge this branch: | bzr merge lp:~bac/launchpad/voucherdot |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Curtis Hovey (community) | code | Approve | |
Review via email: mp+22754@code.launchpad.net |
Commit message
Allow ProductSet.
Description of the change
= Summary =
When trying to assign a voucher to a product with a (legal) dot in it's
name there was an InvalidValue error because the vocabulary invoked
during widget validation returned no product. The vocabulary uses
ProductSet.
search.
== Proposed fix ==
Comparing with the PillarSet.search() shows that the latter has an extra
clause to match on the pillar name. Such a clause has been added to the
forReview search.
== Pre-implementation notes ==
None
== Implementation details ==
As above.
== Tests ==
bin/text -vvm lp.registry -t commercialsubsc
== Demo and Q/A ==
Attempt to assign a voucher to the accountz.com outstanding project.
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files:
lib/lp/
lib/lp/
== Pylint notices ==
lib/lp/
22: [F0401] Unable to import 'zope.interface'
23: [F0401] Unable to import 'zope.component'
24: [F0401] Unable to import 'zope.security.
27: [F0401] Unable to import 'lazr.delegates'
Oh. I think I discovered this last year while searching. Thanks for the fix.