if (x['title'] == "New Features"): curl = url + "feature-requests/" else: curl = url + "bugs/" categories = x['categories'].keys() categories.sort() for category in categories: c = "'''" + category + "'''\n" a = '' for artifact in x['categories'][category]: aid = artifact['Ticket Number'] aurl = curl + (aid) if (artifact['Status'] not in close_resolutions): continue a += ' * [%s %s] - %s\n' % \ (aurl, aid, artifact['Summary']) if a != '': print c + a, print '' # Main db = sf2xml_parser.get_data(options.xmlfile, [args[0]]) print_changelog = print_text #if options.web: print_changelog = print_html if options.web: print_changelog = print_wiki print_changelog(db, args)
'Pending': ('#11ff00', 'black'), 'Closed': ('#009900', 'white')} if artifact['Status'] != 'closed': if 'Nobody' in artifact['Owner']: return style % colors['Bad'] else: return style % colors['Open'] else: if artifact['Status'] != 'closed-fixed': return style % colors['Pending'] else: return style % colors['Closed'] # Go get the parsed data db = sf2xml_parser.get_data(options.xmlfile, releases, ['Features', 'Bugs']) # Generate the wiki page url = 'http://sourceforge.net/p/openhpi/' for release in releases: print '==== %s ====' % release for x in db: if len(x['categories']) == 0: continue print "||||||||<tablestyle=\"border: 0\"style=\"border: 0\"> '''~+%s+~''' ||" % x['title'] if (x['title'] == "New Features"): curl = url + "feature-requests/" else: curl = url + "bugs/" categories = x['categories'].keys() categories.sort() for category in categories:
} if artifact['Status'] != 'closed': if 'Nobody' in artifact['Owner']: return style % colors['Bad'] else: return style % colors['Open'] else: if artifact['Status'] != 'closed-fixed': return style % colors['Pending'] else: return style % colors['Closed'] # Go get the parsed data db = sf2xml_parser.get_data(options.xmlfile, releases, ['Features', 'Bugs']) # Generate the wiki page url = 'http://sourceforge.net/p/openhpi/' for release in releases: print '==== %s ====' % release for x in db: if len(x['categories']) == 0: continue print "||||||||<tablestyle=\"border: 0\"style=\"border: 0\"> '''~+%s+~''' ||" % x[ 'title'] if (x['title'] == "New Features"): curl = url + "feature-requests/" else: curl = url + "bugs/" categories = x['categories'].keys() categories.sort()