Merge lp:~adeuring/launchpad/bug-615763 into lp:launchpad/db-devel
| Status: | Merged |
|---|---|
| Approved by: | Graham Binns on 2010-09-14 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 9784 |
| Proposed branch: | lp:~adeuring/launchpad/bug-615763 |
| Merge into: | lp:launchpad/db-devel |
| Diff against target: |
188 lines (+119/-21) 3 files modified
lib/canonical/launchpad/zcml/librarian.zcml (+1/-1) lib/lp/bugs/browser/bugattachment.py (+11/-20) lib/lp/bugs/browser/tests/test_bugattachment_edit_view.py (+107/-0) |
| To merge this branch: | bzr merge lp:~adeuring/launchpad/bug-615763 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Graham Binns (community) | code | 2010-09-14 | Approve on 2010-09-14 |
|
Review via email:
|
|||
Description of the Change
This branch makes changing the content type of a bug attachment a bit simpler and more efficient.
The content type is stored as an attribute of the LibraryFileAlias associtaed with the bugattachment. If a user changed the content type of a bug attachment, the old implementation of BugAttachmentEd
This was necessary because LFA attributes are read-only, but since a few weeks we have a class LibraryFileAlia
I also added a few unit tests for BugAttachmentEd
./bin/test -vvt test_bugattachm
no lint
