l.b.i.b.IBugAttachment(IHasBug) : interface documentation

Part of lp.bugs.interfaces.bugattachment View In Hierarchy

Known implementations: lp.bugs.model.bugattachment.BugAttachment

A file attachment to an IBug.
Int id Undocumented
Bytes libraryfile Undocumented
Bool is_patch Is this attachment a patch?
Method removeFromBug Remove the attachment from the bug.
Method destroySelf Delete this record.
Method getFileByName Return the `ILibraryFileAlias for the given file name.

Inherited from IHasBug:

Int bug Undocumented
id =
Undocumented
libraryfile =
Undocumented
is_patch =
Is this attachment a patch?
@call_with(REQUEST_USER)
@export_write_operation()
def removeFromBug(user):
Remove the attachment from the bug.
def destroySelf():
Delete this record.

The library file content for this attachment is set to None.

def getFileByName(filename):
Return the `ILibraryFileAlias for the given file name.

NotFoundError is raised if the given filename does not match
libraryfile.filename.
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.