fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Dodanie większej ilości testów i usunięcie zbędnego kodu.
[redakcja.git]
/
apps
/
api
/
views.py
diff --git
a/apps/api/views.py
b/apps/api/views.py
old mode 100644
(file)
new mode 100755
(executable)
index
a811802
..
3e9cb01
--- a/
apps/api/views.py
+++ b/
apps/api/views.py
@@
-24,7
+24,7
@@
def render(request):
style = etree.parse(style_filename)
style = etree.parse(style_filename)
- data = u'<chunk>
%s</chunk>' % LINE_SWAP_EXPR.sub(u'<br />\n', data
)
+ data = u'<chunk>
<%s>%s</%s></chunk>' % (tag, LINE_SWAP_EXPR.sub(u'<br />\n', data), tag
)
log.info(data)
doc = etree.parse( StringIO(data) )
log.info(data)
doc = etree.parse( StringIO(data) )
@@
-35,6
+35,4
@@
def render(request):
}
result = doc.xslt(style, **opts)
}
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