little correction
authorcavaliet
Fri, 17 Oct 2014 17:54:06 +0200
changeset 41 69a7e0b101de
parent 40 54d3b561a482
child 42 926f0426ce78
little correction
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 :"