There is a very unfortunate side effect of this bug: when I change the content of an attachment like
>>> attachment = bug.attachments[1].data >>> f = attachment.open("w", content_type) >>> f.write("boo bar baz") >>> f.close()
this file is renamed.
Example (first attachment on https://bugs.staging.launchpad.net/buglog-data/+bug/249127): - uploading via web-UI, the link is like: http://staging.launchpadlibrarian.net/17613488/test_attachment.txt - changing the content via launchpadlib, it points to http://staging.launchpadlibrarian.net/17613488/data
Markus
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