Commit 686d70cd authored by Jérome Perrin's avatar Jérome Perrin

ci_slideshow: set response content type explicitly

it would be good to rewrite this in a page template
parent 6a081dc1
......@@ -5,6 +5,9 @@ Presentation Layout ?portal_skin=CI_slideshow
"""
import re
container.REQUEST.RESPONSE.setHeader('content-type', 'text/html')
def getSlideList(content):
return re.findall(r'<section[^>]*?>(.*?)</section>', content, re.S)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment