On 27 April 2011 19:09, Brian Murray <email address hidden> wrote:
> Well the api requires a comment when adding an attachment so it doesn't
> seem that there is a way to modify apport to prevent multiple email
> messages.
Ah, see, here's the problem:
Internally `comment` can be either a string or an IMessage, which is
how we can theoretically have several attachments linked to one
comment. In the declaration for IBug, we see:
On 27 April 2011 19:09, Brian Murray <email address hidden> wrote:
> Well the api requires a comment when adding an attachment so it doesn't
> seem that there is a way to modify apport to prevent multiple email
> messages.
Ah, see, here's the problem:
Internally `comment` can be either a string or an IMessage, which is
how we can theoretically have several attachments linked to one
comment. In the declaration for IBug, we see:
@operation_ parameters(
data=Bytes( constraint= attachment_ size_constraint ),
comment= Text(), filename= TextLine( ), is_patch=Bool(),
content_ type=TextLine( ), description=Text()) factory_ operation( IBugAttachment, []) owner, data, comment, filename, is_patch=False,
content_ type=None, description=None):
@export_
def addAttachment(
So, the problem is that the API won't let you pass a message in to
addAttachment(). If we want to change that we should probably track it
elsewhere.