Merge lp:~benji/launchpad/add-launchpadlib-examples into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Leonard Richardson on 2010-11-02 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 11852 |
| Proposed branch: | lp:~benji/launchpad/add-launchpadlib-examples |
| Merge into: | lp:launchpad |
| Diff against target: |
123 lines (+75/-6) 4 files modified
lib/lp/bugs/interfaces/bugattachment.py (+28/-1) lib/lp/bugs/interfaces/bugtracker.py (+18/-1) lib/lp/registry/interfaces/distribution.py (+13/-1) lib/lp/registry/interfaces/person.py (+16/-3) |
| To merge this branch: | bzr merge lp:~benji/launchpad/add-launchpadlib-examples |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Leonard Richardson (community) | 2010-11-02 | Approve on 2010-11-02 | |
|
Review via email:
|
|||
Description of the Change
Integrate the examples added to the launchpadlib docs by https:/
The reStructured Text is somewhat simplistic, but it's what our stack can handle at the moment.
| Benji York (benji) wrote : | # |
> This looks good with one exception. The example starting on line 19
> shows how to use the HostedFile class. It doesn't belong in the
> documentation for the Launchpad web service: it (or something
> equivalent) should show up when you run help() on a HostedFile object.
I replaced that bit with a note to the user about finding information
about the HostedFile object in the lazr.restfulclient documentation.
| Leonard Richardson (leonardr) wrote : | # |
It seems like if we're going to put that cross-reference in one place, we should mention it for every single link to a hosted file. But since the goal here is simple cleanup, and this is definitely an improvement, (and I don't actually want to mention it every single time) I'm not going to press the issue. Let's see how users respond and take it from there.

This looks good with one exception. The example starting on line 19 shows how to use the HostedFile class. It doesn't belong in the documentation for the Launchpad web service: it (or something equivalent) should show up when you run help() on a HostedFile object.