=== modified file 'launchpadbugs/html_bug.py' --- launchpadbugs/html_bug.py 2007-09-07 07:43:06 +0000 +++ launchpadbugs/html_bug.py 2007-09-09 09:55:17 +0000 @@ -709,6 +709,13 @@ and leave the bugreport in launchpad unchanged (default=True) """ if self.changed: + if "description" not in [i.component for i in self.changed]: + url = "%s/+edit" %self.__url + result = self.__connection.get(url) + xmldoc = libxml2.htmlParseDoc(result.text, "UTF-8") + x = xmldoc.xpathEval('//textarea[@name="field.description"]') + assert x, "Wrong XPath-Expr in BugReport.commit() 'description' (%s)" %(DEBUG_URL or "unknown") + self.__description = x[0].content assert self.title and self.description, ".title and .description needed in BugReport.commit() (%s)" %(DEBUG_URL or "unknown") args = { 'field.actions.change': '1', 'field.title': self.title,