Merge lp:~stevenk/launchpad/export-security_contact-for-1.0 into lp:launchpad
Proposed by
Steve Kowalik
on 2012-09-19
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Steve Kowalik on 2012-09-19 | ||||
| Approved revision: | no longer in the source branch. | ||||
| Merged at revision: | 15983 | ||||
| Proposed branch: | lp:~stevenk/launchpad/export-security_contact-for-1.0 | ||||
| Merge into: | lp:launchpad | ||||
| Diff against target: |
52 lines (+23/-0) 3 files modified
lib/lp/registry/interfaces/product.py (+6/-0) lib/lp/registry/model/product.py (+2/-0) lib/lp/registry/tests/test_product_webservice.py (+15/-0) |
||||
| To merge this branch: | bzr merge lp:~stevenk/launchpad/export-security_contact-for-1.0 | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| William Grant | code | 2012-09-19 | Approve on 2012-09-19 |
|
Review via email:
|
|||
Commit Message
Export security_contact (as None) on IProduct for 1.0 only.
Description of the Change
During the death of IHasSecurityContact it was removed from every API version. This had the side effect of breaking users scripts. Resurrect security_contact for IProduct for 1.0 only. I did not want to resurrect IHasSecurityCon
To post a comment you must log in.

11 + description= _('Obsolete field for security contact')),
This is used in the webservice docs. Perhaps something like "Security contact (obsolete; always None)"?
24 @property contact( self):
25 + def security_
26 + return None
Isn't this just 'security_contact = None'?
51 + self.assertEqua l(None, api_prod[ 'security_ contact' ])
assertIs should be used with None, not assertEqual.
54 + self.assertFals e(api_prod. has_key( 'security_ contact' ))
has_key is pretty rare; we usually prefer to use "'key' in dict" instead. If you use that you can probably assertNotIn.