Add a method to IBug to link existing file aliases
Bug #524296 reported by
Graham Binns
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Graham Binns |
Bug Description
At the moment IBug.addAttachm
However, for situations like those in bug 513193, where the attachments already exist as LibraryFileAliases, there's no way to link them to the bug.
IBug needs a new method, linkAttachment(), which will take most of the same parameters as addAttachment(), but which will take a file_alias instead of a data parameter. The FileAlias will then be used during the linking process rather than creating a new one.
addAttachment() should call linkAttachment() so that functionality is not duplicated.
Related branches
lp:~gmb/launchpad/link-attachment-bug-524296
- Abel Deuring (community): Approve (code)
-
Diff: 224 lines (+114/-12)4 files modifiedlib/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)
Changed in malone: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fixed in db r9014 <http:// bazaar. launchpad. net/~launchpad- pqm/launchpad/ db-devel/ revision/ 9014>