equal
deleted
inserted
replaced
190 update_date = doc.xpath("/iri/text-annotation/meta/modified/text()") |
190 update_date = doc.xpath("/iri/text-annotation/meta/modified/text()") |
191 if update_date and annot.update_date != update_date[0]: |
191 if update_date and annot.update_date != update_date[0]: |
192 annot.update_date = unicode(update_date[0]) |
192 annot.update_date = unicode(update_date[0]) |
193 |
193 |
194 annot.save() |
194 annot.save() |
195 annot.update_index() |
|
196 |
195 |
197 return HttpResponse(lxml.etree.tostring(annot.serialize(), pretty_print=True), mimetype="text/xml;charset=utf-8") |
196 return HttpResponse(lxml.etree.tostring(annot.serialize(), pretty_print=True), mimetype="text/xml;charset=utf-8") |
198 |
197 |
199 |
198 |