l.b.s.bugimport : module documentation

Part of lp.bugs.scripts

An XML bug importer

This code can import an XML bug dump into Launchpad. The XML format is described in the RELAX-NG schema 'doc/bug-export.rnc'.

Class BugXMLSyntaxError A syntax error was detected in the input.
Function parse_date Parse a date in the format 'YYYY-MM-DDTHH:MM:SSZ' to a dattime.
Function get_text Get the text content of an element.
Function get_enum_value Get the dbschema enum value with the given name.
Function get_element Get the first element with the given name in the bugs XML namespace.
Function get_value Return the text value of the element with the given name.
Function get_all Get a list of all elements with the given name.
Class BugImporter Import bugs into Launchpad
def parse_date(datestr):
Parse a date in the format 'YYYY-MM-DDTHH:MM:SSZ' to a dattime.
def get_text(node):
Get the text content of an element.
def get_enum_value(enumtype, name):
Get the dbschema enum value with the given name.
def get_element(node, name):
Get the first element with the given name in the bugs XML namespace.
def get_value(node, name):
Return the text value of the element with the given name.
def get_all(node, name):
Get a list of all elements with the given name.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.