Skip to content

Conversation

@rkdarst
Copy link
Contributor

@rkdarst rkdarst commented Jan 23, 2022

  • When trying to make the rrule, I was getting import errors in
    Thunderbird locally, + the online icalendar verifier. (These
    changes have not yet been tested for the online calendars. I also
    wondered if the online calendars would be more relaxed in parsing
    it, so that it would work).

  • The rrule had a trailing ':', since it was parsed as NAME:VALUE with
    all of the rrule in NAME only, leaving the ':' on the end.

  • Now, split the rrule on ':' (maxsplit=1), and make the
    ics.ContentLine with the 'name=[left side]', 'value=[right side]'.
    This leaves the colon in the right place.

  • This makes the generated ics pass the validator and work locally in
    Thunderbird. If it doesn't work with online calendars, I will
    update this PR with that information.

  • Review: worth someone looking to see if this is reasonable, but I
    think there is little chance of anything being made worse than it
    was before.

- When trying to make the rrule, I was getting import errors in
  Thunderbird locally, + the online icalendar verifier.  (These
  changes have not yet been tested for the online calendars.  I also
  wondered if the online calendars would be more relaxed in parsing
  it, so that it would work).

- The rrule had a trailing ':', since it was parsed as NAME:VALUE with
  all of the rrule in NAME only, leaving the ':' on the end.

- Now, split the rrule on ':' (maxsplit=1), and make the
  ics.ContentLine with the 'name=[left side]', 'value=[right side]'.
  This leaves the colon in the right place.

- This makes the generated ics pass the validator and work locally in
  Thunderbird.  If it doesn't work with online calendars, I will
  update this PR with that information.

- Review: worth someone looking to see if this is reasonable, but I
  think there is little chance of anything being made worse than it
  was before.
@stefanv
Copy link
Member

stefanv commented Jan 23, 2022

Thank you @rkdarst!

I'd also like to point out ics-py/ics-py#307 for online use, in case you're interested.

@stefanv stefanv merged commit 2c6ec02 into scientific-python:main Jan 23, 2022
@rkdarst rkdarst deleted the rkdarst/fix-rrule branch January 23, 2022 11:50
rkdarst added a commit to rkdarst/yaml2ics that referenced this pull request Jan 23, 2022
- Add as NAME: to the top-level calendar, as mentioned in
  scientific-python#6 .
@jarrodmillman jarrodmillman added this to the 0.1 milestone Feb 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants