Module: check_mk
Branch: master
Commit: 856840a6030dd106754d4165e4326321a9f85e93
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=856840a6030dd1…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Nov 6 13:58:49 2014 +0100
Fixed alias of iCalender imported timeperiods
---
web/htdocs/wato.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 6699527..3689945 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -9475,9 +9475,7 @@ def mode_timeperiod_import_ical(phase):
raise
raise MKUserError('ical_file', _('Failed to parse file:
%s') % e)
- html.set_var('name', data.get('name', filename))
- html.set_var('alias', _('Imported from iCalendar "%s"
on %s') %
- (data.get('descr', filename),
time.strftime('%Y-%m-%d')))
+ html.set_var('alias', data.get('descr',
data.get('name', filename)))
for day in [ "monday", "tuesday", "wednesday",
"thursday",
"friday", "saturday", "sunday" ]:
@@ -9488,6 +9486,7 @@ def mode_timeperiod_import_ical(phase):
for index, event in enumerate(data['events']):
index += 1
html.set_var('except_%d_0' % index, event['date'])
+ html.set_var('except_indexof_%d' % index, index)
if ical['times']:
for n in range(3):
if ical['times'][n]: