|
|
@@ -113,6 +113,14 @@ def ICal_Progamme_Dyn_Request(request): |
|
|
|
event.add('url', "http://jm2l.linux-azur.org/2015/le-programme" ) |
|
|
|
event.add('priority', 5) |
|
|
|
cal.add_component(event) |
|
|
|
|
|
|
|
TabCorr = { |
|
|
|
135:"Koneko", |
|
|
|
131:"cam-jm2l-a", |
|
|
|
132:"cam-jm2l-b", |
|
|
|
115:"cam-jm2l-e", |
|
|
|
114:"cam-jm2l-f" |
|
|
|
} |
|
|
|
|
|
|
|
for i, ev in enumerate(Events): |
|
|
|
if ev.event_type: |
|
|
@@ -122,7 +130,7 @@ def ICal_Progamme_Dyn_Request(request): |
|
|
|
event.add('dtstart', ev.start_time.replace(tzinfo=tz, day=today.day, month = today.month, hour=(ev.start_time.hour)%24 ) ) |
|
|
|
event.add('dtend', ev.end_time.replace(tzinfo=tz, day=today.day, month = today.month, hour=(ev.end_time.hour)%24 ) ) |
|
|
|
event.add('created', ev.last_change.replace(tzinfo=tz) ) |
|
|
|
event.add('description', "http://jm2l.linux-azur.org:8081/%d.webm" % ev.Salle.phy_salle_id ) |
|
|
|
event.add('description', "http://jm2l.linux-azur.org:8081/%s.webm" % TabCorr.get(ev.Salle.phy_salle_id, ev.Salle.phy_salle_id) ) |
|
|
|
event.add('location', "http://jm2l.linux-azur.org/img/%d.gif" % ev.Salle.phy_salle_id ) |
|
|
|
event.add('url', "http://www.linux-azur.org/event/%s/%s" % (ev.for_year, ev.slug) ) |
|
|
|
event.add('priority', 5) |
|
|
@@ -1873,4 +1881,4 @@ def notfound(reason, request): |
|
|
|
request.response.status = 404 |
|
|
|
return render_to_response('jm2l:templates/Errors/404.mako', { "reason":reason }, |
|
|
|
request=request) |
|
|
|
|
|
|
|
|