# HG changeset patch # User Paul Boddie # Date 1366920896 -7200 # Node ID 65eb8957f696ee4c0e4e5d6b9e40d44c8da396c5 # Parent 92ec5d7be0b56490fa202da2aadfdca133aebd55 Added support for multiple property values, producing lists for collections of such values when parsing, and accepting lists of such values when writing. diff -r 92ec5d7be0b5 -r 65eb8957f696 README.txt --- a/README.txt Thu Apr 25 22:11:23 2013 +0200 +++ b/README.txt Thu Apr 25 22:14:56 2013 +0200 @@ -34,3 +34,6 @@ * Added support for writing resources through a specific write method instead of using a stream, thus changing the iterwrite function's signature. + * Added support for multiple property values, producing lists for + collections of such values when parsing, and accepting lists of such + values when writing. diff -r 92ec5d7be0b5 -r 65eb8957f696 tests/test.ics --- a/tests/test.ics Thu Apr 25 22:11:23 2013 +0200 +++ b/tests/test.ics Thu Apr 25 22:14:56 2013 +0200 @@ -13,6 +13,7 @@ SUMMARY:Testing DTSTART;TZID=CEST:20081018T150000 DTEND;TZID=CEST:20081018T153000 +RDATE;VALUE=DATE:20081025,20081101 LOCATION:Oslo\, Norway END:VEVENT END:VCALENDAR diff -r 92ec5d7be0b5 -r 65eb8957f696 vCalendar.py --- a/vCalendar.py Thu Apr 25 22:11:23 2013 +0200 +++ b/vCalendar.py Thu Apr 25 22:14:56 2013 +0200 @@ -32,6 +32,7 @@ """ import vContent +import re try: set @@ -48,6 +49,8 @@ ]) QUOTED_TYPES = set(["URI"]) +unquoted_comma_regexp = re.compile(r"(?