Open geier opened 2 years ago
there are lots of different ways to create events at the moment, we should aggregate and only expose as few as possible
Might be best to start listing all those ways. I'm only familiar with khal new
and ikhal, n
.
I mean the internal ways of creating or converting events, you can at the very least do that from CalendarCollection, Event, and some icalendar methods. Which mostly call each other, but IMHO it would be best, if e.g. controller.py only uses CalendarCollection.
As we are breaking backwards compatibility anyway, we should try to clean the code base.
Some ideas:
strings
in icalendar format (starting withBEGIN:VCALENDAR
), which are often namesics
orical
(and probably some other things) -> suggestion:ics
(ical string)icalendar.Vevents()
-> suggestion:vevent
List[icalendar.Vevents()
- often calledevents_list
khalendar.event.Events()
-> suggestion:event
CalendarCollection.new()
toinsert()
see #1160