def __init__(self, author=None, authoring_tool=None, comments=None, copyright=None, source_data=None, xmlnode=None): """Create a new contributor :param str author: The author's name :param str authoring_tool: Name of the authoring tool :param str comments: Comments from the contributor :param str copyright: Copyright information :param str source_data: URI referencing the source data :param xmlnode: If loaded from xml, the xml node """ self.author = author """Contains a string with the author's name.""" self.authoring_tool = authoring_tool """Contains a string with the name of the authoring tool.""" self.comments = comments """Contains a string with comments from this contributor.""" self.copyright = copyright """Contains a string with copyright information.""" self.source_data = source_data """Contains a string with a URI referencing the source data for this asset.""" if xmlnode is not None: self.xmlnode = xmlnode """ElementTree representation of the contributor.""" else: self.xmlnode = E.contributor() if author is not None: self.xmlnode.append(E.author(str(author))) if authoring_tool is not None: self.xmlnode.append(E.authoring_tool(str(authoring_tool))) if comments is not None: self.xmlnode.append(E.comments(str(comments))) if copyright is not None: self.xmlnode.append(E.copyright(str(copyright))) if source_data is not None: self.xmlnode.append(E.source_data(str(source_data)))