Package screenlets :: Package plugins :: Module iCal :: Class ICalReader

[hide private]
[frames] | no frames]

# Class ICalReader

source code

Instance Methods | [hide private]

__init__(iCal, dataList=...) Initializes the iCal reader and parses the list type object for events. | source code

readFiles(fileList) This function accepts ARRAY with list of local file names. | source code

readURL(self, url) Put rutine to fetch and convert a resource into lines and feed it to readEvents() | source code

readEvents(self, lines, emptyEvents=False) | source code

parseEvent(self, lines) | source code

parseDate(self, dateStr) | source code

selectEvents(self, selectFunction) | source code

todaysEvents(self, event) | source code

tomorrowsEvents(self, event) | source code

afterTodaysEvents(self, event) | source code

eventsFor(self, date) | source code

Method Details | [hide private]

### __init__(iCal, dataList=...)
(Constructor)

source code

Initializes the iCal reader and parses the list type object for events. The list type object with iCal contents is optional. You can call readFiles(file name list) and readEvents(iCal data lines) separately.

### readFiles(fileList)

source code

This function accepts ARRAY with list of local file names. We put contents of the files into one big list and feed to readEvents() We only work with files, no folders or wildcards.