def _list_bugs(self, bugs, show_tags=False, xml=False): if xml == True: print >>self.stdout, '<?xml version="1.0" encoding="%s" ?>' % self.stdout.encoding print >>self.stdout, "<be-xml>" if len(bugs) > 0: for bug in bugs: if xml == True: print >>self.stdout, bug.xml(show_comments=True) else: bug_string = bug.string(shortlist=True) if show_tags == True: attrs, summary = bug_string.split(" ", 1) bug_string = "%s%s: %s" % (attrs, ",".join(libbe.command.tag.get_tags(bug)), summary) print >>self.stdout, bug_string if xml == True: print >>self.stdout, "</be-xml>"
def _list_bugs(self, bugs, show_tags=False, xml=False): if xml == True: print >> self.stdout, \ '<?xml version="1.0" encoding="%s" ?>' % self.stdout.encoding print >> self.stdout, '<be-xml>' if len(bugs) > 0: for bug in bugs: if xml == True: print >> self.stdout, bug.xml(show_comments=True) else: bug_string = bug.string(shortlist=True) if show_tags == True: attrs, summary = bug_string.split(' ', 1) bug_string = ('%s%s: %s' % (attrs, ','.join( libbe.command.tag.get_tags(bug)), summary)) print >> self.stdout, bug_string if xml == True: print >> self.stdout, '</be-xml>'
def bug_rem_string(self, bug): return bug.string(shortlist=True)