Property silently dropped
jacadzaca opened this issue · comments
In the RFC it says that Applications [...] SHOULD NOT silently drop any components as that can lead to user data loss
. If you run this:
from icalendar import Event
ics = b'\r\n'.join([b'BEGIN:VEVENT',
b'X-APPLE-RADIUS=49.91307046514149',
b'END:VEVENT'])
print(Event.from_ical(ics).to_ical())
it outputs in b'BEGIN:VEVENT\r\nEND:VEVENT\r\n'
, so the X-APPLE_RADIUS
property is lost
Interestingly, if you run:
from icalendar import Event
event = Event()
event.add(
"X-APPLE-RADIUS",
"49.91307046514149",
)
print(event.to_ical())
it outputs b'BEGIN:VEVENT\r\nX-APPLE-RADIUS:49.91307046514149\r\nEND:VEVENT\r\n'
, which is correct. The problem seems to be in the parser.
Related: #168
I cloned icalendar cloned from github
typo...