equal
deleted
inserted
replaced
31 return HttpResponseForbidden(_("The content does not exists or you are not allowed to access this content")) |
31 return HttpResponseForbidden(_("The content does not exists or you are not allowed to access this content")) |
32 project = content.get_or_create_front_project() |
32 project = content.get_or_create_front_project() |
33 project_id = project.ldt_id |
33 project_id = project.ldt_id |
34 if not project_id : |
34 if not project_id : |
35 return HttpResponseForbidden(_("Parameters project_id or content_id must be given in the url")) |
35 return HttpResponseForbidden(_("Parameters project_id or content_id must be given in the url")) |
36 |
36 |
37 json_url = reverse("projectjson_id", kwargs={'id':project_id}) |
37 json_url = reverse("projectjson_id", kwargs={'id':project_id}) |
|
38 print(json_url) |
38 player_id = "player_project_" + project_id |
39 player_id = "player_project_" + project_id |
39 ldt_id = project_id |
40 ldt_id = project_id |
40 rend_dict = get_datas_for_embed(request, json_url, player_id, ldt_id, self.iframe_base_url) |
41 rend_dict = get_datas_for_embed(request, json_url, player_id, ldt_id, self.iframe_base_url) |
41 |
42 |
42 # Test if concatenated projects has been asked |
43 # Test if concatenated projects has been asked |