Merge lp:~gmb/launchpad/link-attachment-bug-524296 into lp:launchpad/db-devel
Proposed by
Graham Binns
Status: | Merged |
---|---|
Approved by: | Graham Binns |
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 | Approve | |
Review via email: mp+19694@code.launchpad.net |
Commit message
It's now possible to link existing LibraryFileAliases to a Bug as attachments.
To post a comment you must log in.
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().