예제 #1
0
 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)
예제 #4
0
파일: diff.py 프로젝트: gitmob/yabbe
 def bug_rem_string(self, bug):
     return bug.string(shortlist=True)