Changeset View
Changeset View
Standalone View
Standalone View
pykolab/xml/event.py
Show First 20 Lines • Show All 116 Lines • ▼ Show 20 Lines | def __init__(self, from_ical="", from_string=""): | ||||
self.event = kolabformat.Event() | self.event = kolabformat.Event() | ||||
else: | else: | ||||
self.event = kolabformat.readEvent(from_string, False) | self.event = kolabformat.readEvent(from_string, False) | ||||
self._load_attendees() | self._load_attendees() | ||||
self._load_exceptions() | self._load_exceptions() | ||||
else: | else: | ||||
self.from_ical(from_ical, from_string) | self.from_ical(from_ical, from_string) | ||||
self.set_created(self.get_created()) | |||||
self.uid = self.get_uid() | self.uid = self.get_uid() | ||||
def _load_attendees(self): | def _load_attendees(self): | ||||
for a in self.event.attendees(): | for a in self.event.attendees(): | ||||
att = Attendee(a.contact().email()) | att = Attendee(a.contact().email()) | ||||
att.copy_from(a) | att.copy_from(a) | ||||
self._attendees.append(att) | self._attendees.append(att) | ||||
▲ Show 20 Lines • Show All 1,328 Lines • Show Last 20 Lines |