Merge ~twom/launchpad:add-restricted-files-to-spph-api into launchpad:master
Proposed by
Tom Wardill
Status: | Merged |
---|---|
Approved by: | Tom Wardill |
Approved revision: | c02526a1a1b569f4a783e3dd9d034ee0fce19952 |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | ~twom/launchpad:add-restricted-files-to-spph-api |
Merge into: | launchpad:master |
Diff against target: |
124 lines (+42/-17) 4 files modified
lib/lp/soyuz/browser/tests/test_publishing_webservice.py (+22/-0) lib/lp/soyuz/interfaces/publishing.py (+5/-0) lib/lp/soyuz/model/publishing.py (+13/-0) lib/lp/soyuz/scripts/packagecopier.py (+2/-17) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Colin Watson (community) | Approve | ||
Review via email: mp+403967@code.launchpad.net |
Commit message
Add has_restricted_
To post a comment you must log in.
Can this be exported as a method instead? The implementation isn't quite so trivial that I feel entirely comfortable exporting it as an attribute (which would mean that it'd be called any time somebody asks for one of these objects over the webservice).
In fact, the current interface claims that it's an attribute but the implementation is a non-property method, which probably won't quite work right. Consider renaming this to `hasRestrictedF iles` and fixing the interface to be a method with `@export_ read_operation` .
Perhaps this could also do with a webservice test in `lp.soyuz. browser. tests.test_ publishing_ webservice` .