|
|
|
@ -83,7 +83,7 @@ def parse_recursion(ev, field_name):
|
|
|
|
|
freq = chunks[0].upper()
|
|
|
|
|
if 'until' in chunks:
|
|
|
|
|
until = datetime.strptime(chunks[-1], '%Y-%m-%d')
|
|
|
|
|
rrule = [freq, until]
|
|
|
|
|
rrule = [freq, until]
|
|
|
|
|
else:
|
|
|
|
|
rrule = [freq]
|
|
|
|
|
return rrule
|
|
|
|
@ -126,6 +126,9 @@ def generate_ical_file(generator):
|
|
|
|
|
if not ics_fname:
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
if not os.path.exists(generator.settings['OUTPUT_PATH']):
|
|
|
|
|
os.makedirs(generator.settings['OUTPUT_PATH'])
|
|
|
|
|
|
|
|
|
|
ics_fname = os.path.join(generator.settings['OUTPUT_PATH'], ics_fname)
|
|
|
|
|
log.debug("Generating calendar at %s with %d events" % (ics_fname, len(events)))
|
|
|
|
|
|
|
|
|
@ -148,7 +151,7 @@ def generate_ical_file(generator):
|
|
|
|
|
|
|
|
|
|
ie = icalendar.Event(
|
|
|
|
|
summary=e.metadata['title'],
|
|
|
|
|
dtstart=dtstart,
|
|
|
|
|
dtstart=dtstart,
|
|
|
|
|
dtend=dtend,
|
|
|
|
|
dtstamp= dtstamp,
|
|
|
|
|
priority=5,
|
|
|
|
|