rename m3u to seance.m3u, add new line

This commit is contained in:
Frédéric Péters 2011-11-25 13:17:32 +01:00
parent 1c95903ca9
commit 812f1374fc
2 changed files with 3 additions and 3 deletions

View File

@ -65,9 +65,9 @@ class View(grok.View, ParlEventBaseView):
class M3U(grok.View, ParlEventBaseView):
grok.context(IParlEvent)
grok.require('zope2.View')
grok.name('m3u')
grok.name('seance.m3u')
def render(self):
portal_url = getToolByName(self.context, 'portal_url').getPortalObject().absolute_url()
self.request.response.setHeader('Content-type', 'audio/x-mpegurl')
return portal_url + '/mp3/' + self.get_stream_name()
return portal_url + '/mp3/' + self.get_stream_name() + '\n'

View File

@ -41,7 +41,7 @@
<li><a href="#" class="cri" tal:condition="python: context.cri and context.cri.to_object"
tal:attributes="href context/cri/to_object/absolute_url">Compte-rendu intégral</a>
<span class="cri" tal:condition="python: not(context.cri and context.cri.to_object)">Compte-rendu intégral (non disponible)</span></li>
<li><a tal:attributes="href string:${context/absolute_url}/m3u" class="streaming" tal:condition="view/has_stream">Streaming</a>
<li><a tal:attributes="href string:${context/absolute_url}/seance.m3u" class="streaming" tal:condition="view/has_stream">Streaming</a>
<span class="streaming" tal:condition="not: view/has_stream">Streaming (non disponible)</span></li>
</ul>