equal
deleted
inserted
replaced
35 # for sc in c["subcategories"]: |
35 # for sc in c["subcategories"]: |
36 # output.append({"name": sc["code"],"keywords": [ sc["label"] ], "color" : sc["color"] }) |
36 # output.append({"name": sc["code"],"keywords": [ sc["label"] ], "color" : sc["color"] }) |
37 #else: |
37 #else: |
38 output.append({"name": c["code"],"keywords": [ c["label"] ], "color" : c["color"] }) |
38 output.append({"name": c["code"],"keywords": [ c["label"] ], "color" : c["color"] }) |
39 |
39 |
40 base_url = "http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/embediframe/?project_id=" + options.project_id + "&polemic=all&polemics_list=" |
40 base_url = "http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/embediframe/?project_id=" + options.project_id + "&polemic=all&polemic__max_elements=200&polemics_list=" |
41 output_str = json.dumps(output, separators=(',',':')) |
41 output_str = json.dumps(output, separators=(',',':')) |
42 |
42 |
43 print "SIMPLE JSON DUMPS :" |
43 print "SIMPLE JSON DUMPS :" |
44 print base_url + output_str |
44 print base_url + output_str |
45 print "\nURLLIB QUOTE_PLUS JSON DUMPS :" |
45 print "\nURLLIB QUOTE_PLUS JSON DUMPS :" |