Package screenlets :: Package plugins :: Module iCal :: Class ICalReader
[hide private]
[frames] | no frames]

Class ICalReader

source code

object --+
         |
        ICalReader

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

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

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.

Overrides: object.__init__

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.