CalDAV: minor rewrite of previous improvement

make it a little more readable.

bzr revid: p_christ@hol.gr-20100812110838-vmjlnnwopn0pr0j1
This commit is contained in:
P. Christeas 2010-08-12 14:08:38 +03:00
parent a566e35d20
commit e8562fc40c
1 changed files with 3 additions and 1 deletions

View File

@ -235,7 +235,9 @@ class CalDAV(object):
exdates = []
for cal_data in child.getChildren():
if cal_data.name.lower() == 'organizer':
self.ical_set(cal_data.name.lower(), cal_data.params.get('CN') and cal_data.params.get('CN')[0], 'value')
self.ical_set(cal_data.name.lower(),
{'name': cal_data.params.get('CN', ['',])[0]},
'value')
continue
if cal_data.name.lower() == 'attendee':
ctx = context.copy()