Package events :: Module events :: Class Recurrence
[hide private]
[frames] | no frames]

Class Recurrence

source code

Recurrence infomation for an event; this is attached as an attribute to a "normal" event

The entire ICS information is provided as one String in ICalendar format. This string is stored and returned on request; it is as well parsed, so you can request single information chunks (DTStart, DTEnd, RROLE) from it.

The other way around is working as well; provide the information chunks and the ICalendar formatted string is computed.

Instance Methods [hide private]
 
__init__(self)
Empty Constructor
source code
 
initFromData(self, data)
Initialize a recurrence from ICalendar formatted String
source code
 
initFromAttributes(self, rrule, dtstart, dtend=None, isAllDay=False)
Initialize a recurrence from the information chunks
source code
 
getData(self)
GETTER
source code
 
getDTStart(self)
GETTER
source code
 
getDTEnd(self)
GETTER
source code
 
getRRule(self)
GETTER
source code
 
isAllDay(self)
GETTER
source code
 
__eq__(self, other)
Operator overload
source code
 
__ne__(self, other)
Operator overload
source code
 
prettyPrint(self)
Prints all attributes 'nicely'..
source code
Method Details [hide private]

__init__(self)
(Constructor)

source code 

Empty Constructor

Call initFromData or initFromAttributes to initialize.

__eq__(self, other)
(Equality operator)

source code 

Operator overload

Checks whether all items in the recurrences (rrule, dtstart, dtend) match.

__ne__(self, other)

source code 

Operator overload

Returns:
NOT __eq__