=== modified file 'launchpadbugs/html_bug.py'
--- launchpadbugs/html_bug.py 2007-09-07 07:43:06 +0000
+++ launchpadbugs/html_bug.py 2007-09-09 15:57:52 +0000
@@ -352,14 +352,18 @@
"""
changed = self.changed
if changed:
- full_sourcepackage = self.__type.split(".")[0]
+ if self.__type:
+ full_sourcepackage = self.__type.split(".")[0]
+ else:
+ full_sourcepackage = "%s_%s" %(self.targeted_to, str(self.__affects))
s = self.sourcepackage
if s == "ubuntu":
s = ""
- args = { '%s.actions.save' %full_sourcepackage: '1',
- self.__type : s,
+ args = { '%s.actions.save' %full_sourcepackage: '1',
'%s.comment_on_change' %full_sourcepackage: ''#set_status_comment
}
+ if self.__type:
+ args[self.__type] = s
if ".status" in self.__edit_fields:
args['%s.status-empty-marker' %full_sourcepackage] = '1'
args['%s.status' %full_sourcepackage] = self.status
@@ -494,7 +498,9 @@
x = xmledit.xpathEval('td/form/div//table//input[contains(@id,".%s")]' %i)
if x:
type = x[0].prop("id")
- assert type, "Wrong XPath-Expr in InfoTable.parse() 'type' (%s)" %(DEBUG_URL or "unknown")
+ if not type:
+ if not row.xpathEval('td[1]//img[contains(@src,"milestone")]'):
+ assert type, "Wrong XPath-Expr in InfoTable.parse() 'type' (%s)" %(DEBUG_URL or "unknown")
m = xmledit.xpathEval('descendant::select[contains(@id,".milestone")]//option')
if m: