Page MenuHomePhorge

Add RDATE support (#5401)
ClosedPublic

Authored by machniak on Apr 26 2016, 9:57 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 12, 8:07 PM
Unknown Object (File)
Sun, Apr 7, 9:19 AM
Unknown Object (File)
Sun, Apr 7, 5:10 AM
Unknown Object (File)
Sat, Apr 6, 9:55 AM
Unknown Object (File)
Mar 2 2024, 4:46 PM
Unknown Object (File)
Mar 2 2024, 4:45 PM
Unknown Object (File)
Mar 2 2024, 4:45 PM
Unknown Object (File)
Mar 2 2024, 4:45 PM
Subscribers

Diff Detail

Repository
rP pykolab
Branch
dev/5401
Lint
Lint Errors
SeverityLocationCodeMessage
Errorpykolab/xml/event.py:29E302PEP8 E302
Errorpykolab/xml/event.py:32E302PEP8 E302
Errorpykolab/xml/event.py:142E501PEP8 E501
Errorpykolab/xml/event.py:146E501PEP8 E501
Errorpykolab/xml/event.py:168E501PEP8 E501
Errorpykolab/xml/event.py:179E711PEP8 E711
Errorpykolab/xml/event.py:185E501PEP8 E501
Errorpykolab/xml/event.py:192E501PEP8 E501
Errorpykolab/xml/event.py:198E501PEP8 E501
Errorpykolab/xml/event.py:220E501PEP8 E501
Errorpykolab/xml/event.py:225E501PEP8 E501
Errorpykolab/xml/event.py:234E303PEP8 E303
Errorpykolab/xml/event.py:279E711PEP8 E711
Errorpykolab/xml/event.py:283E711PEP8 E711
Errorpykolab/xml/event.py:323E231PEP8 E231
Errorpykolab/xml/event.py:328E501PEP8 E501
Errorpykolab/xml/event.py:340E501PEP8 E501
Errorpykolab/xml/event.py:356E127PEP8 E127
Errorpykolab/xml/event.py:373E703PEP8 E703
Errorpykolab/xml/event.py:382E713PEP8 E713
Errorpykolab/xml/event.py:403E225PEP8 E225
Errorpykolab/xml/event.py:403E501PEP8 E501
Errorpykolab/xml/event.py:411E501PEP8 E501
Errorpykolab/xml/event.py:421E501PEP8 E501
Warningpykolab/xml/event.py:168W602PEP8 W602
Unit
No Test Coverage
Build Status
Buildable 3571
Build 3546: arc lint + arc unit

Event Timeline

machniak retitled this revision from to Add RDATE support (#5401).
machniak updated this object.
machniak edited the test plan for this revision. (Show Details)
machniak added a reviewer: PyKolab Developers.

Please see the inline commentary.

pykolab/xml/event.py
989

Does the existence of an _rdate.params attribute imply that the 'TZID' key is set?

1367

Should not both clauses in this || statement evaluate to True? It seems that for a recurring event, .isValid() should be true as well as (implicitly) a positive number of occurrences should exist.

Note also that a "recurring" event with only one occurrence would validate len() > 0, which may not yield the expected results.

Also note that self.event (the lower-level XML level) and self.get_recurrence_dates() work on two different in-memory representations of the event, allowing for race-conditions. Perhaps it is best to ensure the complete event is read and parsed, which should logically lead to two equals copies.

vanmeeuwen added a reviewer: vanmeeuwen.

This doesn't really have a "pending approval" or "require answers to questions" or somesuch state, so I'm going to have to make this re-appear on your radar by requesting changes.

This revision now requires changes to proceed.May 4 2016, 4:10 PM
pykolab/xml/event.py
989

Yes, it does. According to icalendar code, but I'll add additional check.

1367

RDATE specified additional occurrences. So if there's one RDATE it is recurring event. There can be an event with RDATE but no recurrence rule. So, I think this is correct. I don't get the last paragraph. get_recurrence_dates() also uses self.event.

machniak edited edge metadata.

Added check for TZID and set tzid variable to None, before using them

vanmeeuwen edited edge metadata.
This revision is now accepted and ready to land.May 6 2016, 2:19 PM
This revision was automatically updated to reflect the committed changes.