l.b.u.f.FileBugDataParser : class documentation

Part of lp.bugs.utilities.filebugdataparser View In Hierarchy

Parser for a message containing extra bug information.

Applications like Apport upload such messages, before filing the bug.

Method __init__ Undocumented
Method readHeaders Read the next set of headers of the message.
Method readLine Read a line of the message.
Method parse Parse the message and return a FileBugData instance.
Method _consumeBytes Read bytes from the message up to the end_string.
Method _setDataFromHeaders Set the data attributes from the message headers.
def __init__(self, blob_file):
Undocumented
def _consumeBytes(self, end_string):
Read bytes from the message up to the end_string.

The end_string is included in the output.

If end-of-file is reached, '' is returned.

def readHeaders(self):
Read the next set of headers of the message.
def readLine(self):
Read a line of the message.
def _setDataFromHeaders(self, data, headers):
Set the data attributes from the message headers.
def parse(self):
Parse the message and return a FileBugData instance.

  • The Subject header is the initial bug summary.
  • The Tags header specifies the initial bug tags.
  • The Private header sets the visibility of the bug.
  • The Subscribers header specifies additional initial subscribers
  • The first inline part will be added to the description.
  • All other inline parts will be added as separate comments.
  • All attachment parts will be added as attachment.

When parsing each part of the message is stored in a temporary file on the file system. After using the returned data, removeTemporaryFiles() must be called.

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