def submit_job(request, distro): dry_distro = DryRosDistro(distro) repo_list = dry_distro.get_info() print "Got dry repo list" if distro == 'groovy': wet_distro = WetRosDistro(distro) for name, d in wet_distro.get_info().iteritems(): if not repo_list.has_key(name): repo_list[name] = d else: for key, value in d.iteritems(): print "Key " + key for v in value: print "Value " + v print "Previous " + str(repo_list[name][key]) repo_list[name][key].append(v) print "Got wet repo list" print repo_list return render_to_response('submit_job.html', {'repo_list': repo_list, 'distro': distro}, context_instance=RequestContext(request))
def get_repo_list_ajax(request, ros_distro): dry_distro = DryRosDistro(ros_distro) repo_list = dry_distro.get_info() logger.info("Got dry repo list") wet_distro = WetRosDistro(ros_distro) for name, d in wet_distro.get_info().iteritems(): if name in repo_list: logger.info("%s is in both wet and dry rosdistro!!!!" % name) else: repo_list[name] = d logger.info("Got wet repo list") return simplejson.dumps({ 'repo_list': repo_list, 'release_platforms': wet_distro.get_release_platforms(), 'build_farm_config_url': BUILD_FARM_CONFIG_URL, })