[ANN] iCalendar package 0.9

Max M maxm at mxm.dk
Tue Jan 18 04:41:43 EST 2005


Roger Binns wrote:
> "Max M" <maxm at mxm.dk> wrote in message news:41ebd292$0$253$edfadb0f at dread12.news.tele.dk...
> 
>>http://www.mxm.dk/products/public/ical/
>>
>>Any feedback would be welcome.
> 
> 
> How well do you cope with the crud that real programs generate?  Does it work
> with the different dialects uses out there?  Can it at least identify them?


It depends on how badly the data is screwed up. But generally it should 
be able to work on incorrect implementations.

It doesn't care of the spelling of property and parameter names. Though 
type conversions will need to be done slightly more manual.

If something like 'dtstart' is misspelled it will not return a datetime

 >>> cal.decoded('datestart')

But if you know that it is misspelled you can get it, and convert it 
manually like:

 >>> from PropertyValues import vDDDType
 >>> vDDDType.from_ical(cal['datestart'])

-- 

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science



More information about the Python-list mailing list