Merge lp:~gmb/launchpad/link-attachment-bug-524296 into lp:launchpad/db-devel
Proposed by
Graham Binns
on 2010-02-19
| Status: | Merged |
|---|---|
| Approved by: | Graham Binns on 2010-02-19 |
| Approved revision: | not available |
| Merged at revision: | not available |
| Proposed branch: | lp:~gmb/launchpad/link-attachment-bug-524296 |
| Merge into: | lp:launchpad/db-devel |
| Diff against target: |
224 lines (+114/-12) 4 files modified
lib/lp/bugs/configure.zcml (+21/-2) lib/lp/bugs/doc/bugattachments.txt (+69/-6) lib/lp/bugs/interfaces/bug.py (+12/-0) lib/lp/bugs/model/bug.py (+12/-4) |
| To merge this branch: | bzr merge lp:~gmb/launchpad/link-attachment-bug-524296 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Abel Deuring (community) | code | 2010-02-19 | Approve on 2010-02-19 |
|
Review via email:
|
|||
Commit Message
It's now possible to link existing LibraryFileAliases to a Bug as attachments.
To post a comment you must log in.
| Graham Binns (gmb) wrote : | # |
| Abel Deuring (adeuring) wrote : | # |
Hi Graham,
a nice small and clean branch, r=me.
Reading the diff, I noticed in line 11 of the diff that the value of "set_attributes" looks really scrambled: lots of spaces but no line breaks. I know that you did not change anything there, but could you please re-format it similar to the value of "attributes", as a drive-by fix?
review:
Approve
(code)

This branch adds a linkAttachment() method to IBug and changes
Bug.addAttachment() to use the new linkAttachment() method.
The linkAttachment() method is needed because, when dealing with
uploaded apport blobs we need to be able to link existing
LibraryFileAliases to a bug as attachments rather than creating new
ones.
== lib/lp/ bugs/configure. zcml ==
- I've updated the zcml for IBug / Bug to allow the linkAttachment()
method for Launchpad.Edit.
== lib/lp/ bugs/doc/ bugattachments. txt ==
- I've added tests to cover the new linkAttachment() method. The tests
for addAttachment() also cover it indirectly.
== lib/lp/ bugs/interfaces /bug.py ==
- I've added a definition of linkAttachment().
== lib/lp/ bugs/model/ bug.py ==
- I've added an implementation of linkAttachment().