X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/0917e94c7b5403408a167ac17f8c6474f9563fe8..465f9d370fb3b96b4cc30e139d24e4479a9f7ab0:/apps/api/views.py?ds=sidebyside
diff --git a/apps/api/views.py b/apps/api/views.py
old mode 100644
new mode 100755
index a8118028..3e9cb015
--- a/apps/api/views.py
+++ b/apps/api/views.py
@@ -24,7 +24,7 @@ def render(request):
style = etree.parse(style_filename)
- data = u'%s' % LINE_SWAP_EXPR.sub(u'
\n', data)
+ data = u'<%s>%s%s>' % (tag, LINE_SWAP_EXPR.sub(u'
\n', data), tag)
log.info(data)
doc = etree.parse( StringIO(data) )
@@ -35,6 +35,4 @@ def render(request):
}
result = doc.xslt(style, **opts)
- log.info( str(doc), str(result) )
-
- return HttpResponse( librarian.serialize_children(result.getroot()) )
\ No newline at end of file
+ return HttpResponse( librarian.serialize_children(result.getroot()[0]) )
\ No newline at end of file