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

Class Event

source code

extern.log.log.Loggable --+
                          |
                         Event

I represent a VEVENT entry in a calendar for our purposes. I can have recurrence. I can be scheduled between a start time and an end time, returning a list of start and end points. I can have exception dates.

Instance Methods [hide private]
 
__init__(self, uid, start, end, content, rrules=None, recurrenceid=None, exdates=None) source code
 
_ensureTimeZone(self, dateTime, tz=UTCTimezone()) source code
 
__repr__(self) source code
 
toTuple(self) source code
 
__lt__(self, other) source code
 
__gt__(self, other) source code
 
__eq__(self, other) source code
 
__ne__(self, other) source code

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

Class Variables [hide private]

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

Method Details [hide private]

__init__(self, uid, start, end, content, rrules=None, recurrenceid=None, exdates=None)
(Constructor)

source code 
Parameters:
  • uid (str) - identifier of the event
  • start (datetime.datetime) - start time of the event
  • end (datetime.datetime) - end time of the event
  • content (unicode) - label to describe the content
  • rrules (list of str) - a list of RRULE string
  • recurrenceid (datetime.datetime) - a RECURRENCE-ID, used with recurrence events
  • exdates (list of datetime.datetime or None) - list of exceptions to the recurrence rule