Lines Matching refs:attachment
123 log("Warning, attachment %s on bug %s has invalid %s (%s)" % (
157 attachments = filter(lambda attachment:
158 not attachment["is_obsolete"], attachments)
159 return [Attachment(attachment, self) for attachment in attachments]
213 attachment_href = re.compile("attachment.cgi\?id=\d+&action=review")
375 attachment,
379 attachment[flag_name] = flag['status']
381 attachment[result_key] = flag['setter']
384 attachment = {}
385 attachment['bug_id'] = bug_id
386 attachment['is_obsolete'] = (element.has_key('isobsolete') and element['isobsolete'] == "1")
387 attachment['is_patch'] = (element.has_key('ispatch') and element['ispatch'] == "1")
388 attachment['id'] = int(element.find('attachid').string)
390 attachment['url'] = self.attachment_url_for_id(attachment['id'])
391 attachment['name'] = unicode(element.find('desc').string)
392 attachment['attacher_email'] = str(element.find('attacher').string)
393 attachment['type'] = str(element.find('type').string)
395 element, 'review', attachment, 'reviewer_email')
397 element, 'commit-queue', attachment, 'committer_email')
398 return attachment
409 bug["attachments"] = [self._parse_attachment_element(element, bug["id"]) for element in soup.findAll('attachment')]
432 # This attachment does not exist (or you don't have permissions to
450 # We could grab all the attachment details off of the attachment edit
457 for attachment in attachments:
458 if attachment.id() == int(attachment_id):
459 return attachment
630 # FIXME: This will break if we ever re-order attachment flags
642 comment_text = "Clearing flags on attachment: %s" % attachment_id
687 log("Obsoleting attachment: %s" % attachment_id)