l.b.i.b.IBugAttachmentSet(Interface) : interface documentation

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

A set for IBugAttachment objects.
Method create Create a new attachment and return it.
Method __getitem__ Get an IAttachment by its id.
def create(bug, filealias, title, message, type=IBugAttachment['type'].default, send_notifications=False):
Create a new attachment and return it.
ParametersbugThe IBug to which the new attachment belongs.
filealiasThe IFilealias containing the data.
messageThe IMessage to which this attachment belongs.
typeThe type of attachment. See BugAttachmentType.
send_notificationsIf True, a notification is sent to subscribers of the bug.
def __getitem__(id):
Get an IAttachment by its id.

Return NotFoundError if no such id exists.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.