web/ldt/ldt_utils/views.py
changeset 88 7f2c2d9adf58
parent 85 3b70d84e661a
child 89 30c6e597a7de
child 94 9927a619d2b5
equal deleted inserted replaced
87:b105636ae38d 88:7f2c2d9adf58
   288         mimetype += "; charset=utf-8" 
   288         mimetype += "; charset=utf-8" 
   289     resp = HttpResponse(mimetype=mimetype)
   289     resp = HttpResponse(mimetype=mimetype)
   290     resp['Cache-Control']='no-cache, must-revalidate'
   290     resp['Cache-Control']='no-cache, must-revalidate'
   291     resp['Pragma']='no-cache'
   291     resp['Pragma']='no-cache'
   292 
   292 
       
   293     ps = ProjectSerializer(project, from_content=False, from_display=True) 
   293     annotations = project.getAnnotations(first_cutting=True)
   294     annotations = project.getAnnotations(first_cutting=True)
       
   295     
   294     rdf_ns = u"http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   296     rdf_ns = u"http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   295     dc_ns = u"http://purl.org/dc/elements/1.1/"
   297     dc_ns = u"http://purl.org/dc/elements/1.1/"
   296     rdf = u"{%s}" % rdf_ns
   298     rdf = u"{%s}" % rdf_ns
   297     dc = u"{%s}" % dc_ns
   299     dc = u"{%s}" % dc_ns
   298     nsmap = {u'rdf' : rdf_ns, u'dc':dc_ns}
   300     nsmap = {u'rdf' : rdf_ns, u'dc':dc_ns}