please add 'filename' key to bug_attachment
Bug #254595 reported by
Markus Korn
This bug report is a duplicate of:
Bug #281476: HostedFiles: Need way to get attachment filenames.
Edit
Remove
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
High
|
Unassigned | ||
launchpadlib |
Invalid
|
High
|
Unassigned |
Bug Description
I'm not sure if launchpadlib is the right target for this bugreport, but it would be nice if a bug_attachment entry could have a 'filename' attribute.
Markus
Changed in launchpadlib: | |
importance: | Undecided → High |
status: | New → Triaged |
To post a comment you must log in.
There is a very unfortunate side effect of this bug: when I change the content of an attachment like
>>> attachment = bug.attachments [1].data open("w" , content_type)
>>> f = attachment.
>>> f.write("boo bar baz")
>>> f.close()
this file is renamed.
Example (first attachment on https:/ /bugs.staging. launchpad. net/buglog- data/+bug/ 249127): staging. launchpadlibrar ian.net/ 17613488/ test_attachment .txt staging. launchpadlibrar ian.net/ 17613488/ data
- uploading via web-UI, the link is like: http://
- changing the content via launchpadlib, it points to http://
Markus