New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default type vText when converting vRecur to ical #299
Conversation
@kam193 thanks for creating this Pull Request and help improve Plone! To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass. Whenever you feel that the pull request is ready to be tested, either start all jenkins jobs pull requests by yourself, or simply add a comment in this pull request stating:
With this simple comment all the jobs will be started automatically. Happy hacking! |
@jenkins-plone-org please run jobs |
It looks like broken CI on Plone and too long working |
eb77046
to
869c0e4
Compare
I don't know enough (basically nothing) about |
@jenkins-plone-org please run jobs |
1 similar comment
@jenkins-plone-org please run jobs |
Use default type when converting recurence definition to ical string.
@jenkins-plone-org please run jobs |
Even I know not much about the internals of the package. But I would say |
The problem is when type is out of the standard range: Now, when we pass to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still don't know much about this package. But seems okay. I will merge.
Thank you!
Thanks! |
Use default type
vText
when converting recurrence definition to ical string.This is similar to
from_ical
behavior, that allows to set anything as recurrence key and treats it asvText
; but at the same time,to_ical
has strictly limited list of supported types and no default type, so the rulex == vDataType.from_ical(VDataType(x).to_ical())
(from https://github.com/collective/icalendar/blob/master/src/icalendar/prop.py#L33) is broken.Furthermore, with this we can use non-standard recurrence keys (like
BYEASTER
supported bydeteutil
).This is a fix without breaking changes.