src/ldt/ldt/ldt_utils/views/workspace.py
changeset 833 20acf3b3b2f0
parent 821 ca8127a4cdd5
child 839 e5b5e9d56eec
--- a/src/ldt/ldt/ldt_utils/views/workspace.py	Thu Oct 04 19:07:33 2012 +0200
+++ b/src/ldt/ldt/ldt_utils/views/workspace.py	Mon Oct 08 12:34:11 2012 +0200
@@ -108,7 +108,9 @@
                            (lambda s:escape(render_to_string("ldt/ldt_utils/partial/embed_%s.html" % (s), rend_dict, context_instance=RequestContext(request))))(typestr))
                            for typestr in ('player', 'seo_body', 'seo_meta', 'links'))
     rend_dict['embed_rendered'] = embed_rendered
-
+    iframe=render_to_string("ldt/ldt_utils/partial/iframe_embed_player.html", rend_dict, context_instance=RequestContext(request))
+    rend_dict['iframe']=iframe
+    logging.debug("louiseredhotpeppers iframe : "+str(iframe)+" bla")
     return render_to_response("ldt/ldt_utils/embed_popup.html", rend_dict, context_instance=RequestContext(request))
 
 
@@ -140,6 +142,8 @@
         rend_dict["annotations_list"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("annotations_list").lower())
         rend_dict["player_width"] = 550
     
+    rend_dict["annotation_block"]= True
+    
 
     return render_to_response("ldt/ldt_utils/embed_iframe.html", rend_dict, context_instance=RequestContext(request))
 
@@ -149,6 +153,7 @@
     project = Project.safe_objects.get(ldt_id=ldt_id); #@UndefinedVariable
     project_contents = project.contents.all()
     content=project_contents[0]
+    iri_id=content.iri_id
     external_url = None
     if content.src is not None:
         for external_src in settings.EXTERNAL_STREAM_SRC:
@@ -173,7 +178,7 @@
     annotations = ps.get_annotations(first_cutting=True)
     rend_dict = {'json_url':json_url, 'player_id':player_id, 'annotations':annotations, 'ldt_id': ldt_id, 'stream_mode': stream_mode, 
                  'player_width': player_width, 'player_height': player_height, 'external_url': external_url,
-                 'polemic':False, 'show_mic_record':False, 'annotations_list':False}
+                 'polemic':False, 'show_mic_record':False, 'annotations_list':False, 'iri_id': iri_id}
     
     return rend_dict