diff -r 54d3b561a482 -r 69a7e0b101de utils/create_url_polemics_param.py --- a/utils/create_url_polemics_param.py Fri Oct 17 17:48:28 2014 +0200 +++ b/utils/create_url_polemics_param.py Fri Oct 17 17:54:06 2014 +0200 @@ -8,9 +8,7 @@ def get_options(): parser = argparse.ArgumentParser(description="Create url for iframe in Mons projects") - - parser.add_argument("-c", "--content", dest="content_id", - help="content uuid", metavar="CONTENT_UUID", required=True) + parser.add_argument("-p", "--project", dest="project_id", help="project uuid", metavar="PROJECT_UUID", required=True) @@ -21,7 +19,7 @@ (options, parser) = get_options() - if len(sys.argv) == 1 or options.content_id is None or options.project_id is None: + if len(sys.argv) == 1 or options.project_id is None: parser.print_help() sys.exit(1) @@ -39,7 +37,7 @@ else: output.append({"name": c["code"],"keywords": [ c["label"] ], "color" : c["color"] }) - base_url = "http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/embediframe/?content_id=" + options.content_id + "&project_id=" + options.project_id + "&polemic=all&polemics_list=" + base_url = "http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/embediframe/?project_id=" + options.project_id + "&polemic=all&polemics_list=" output_str = json.dumps(output, separators=(',',':')) print "SIMPLE JSON DUMPS :"