Package flumotion :: Package common :: Module eventcalendar :: Class EventSet
[hide private]

Class EventSet

source code

extern.log.log.Loggable --+
                          |
                         EventSet

I represent a set of EVENT entries in a calendar sharing the same uid. I can have recurrence. I can be scheduled between a start time and an end time, returning a list of start and end points in UTC. I can have exception dates.

Instance Methods [hide private]
 
__init__(self, uid) source code
 
__repr__(self) source code
 
addEvent(self, event)
Add an event to the set.
source code
 
removeEvent(self, event)
Remove and event from the set.
source code
 
getPoints(self, start, end)
Get an ordered list of start and end points between the given start and end for this set of Events.
source code
 
_getEventInstances(self, start, end) source code
 
_getEventInstanceSingle(self, event, start, end) source code
 
_getEventInstancesRecur(self, event, start, end) source code
Event
getEvents(self)
Return the list of events
source code

Inherited from extern.log.log.Loggable: __providedBy__, debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure, writeMarker

Class Variables [hide private]

Inherited from extern.log.log.Loggable: __implemented__, __provides__, logCategory

Method Details [hide private]

__init__(self, uid)
(Constructor)

source code 
Parameters:
  • uid (str) - the uid shared among the events on this set

addEvent(self, event)

source code 

Add an event to the set. The event must have the same uid as the set.

getPoints(self, start, end)

source code 

Get an ordered list of start and end points between the given start and end for this set of Events.

Parameters:
  • start (datetime) - The start point.
  • end (datetime) - The end point