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

Module eventcalendar

source code

Classes [hide private]
  LocalTimezone
A tzinfo class representing the system's idea of the local timezone
  UTCTimezone
A tzinfo class representing UTC
  Point
I represent a start or an end point linked to an event instance of an event.
  EventInstance
I represent one event instance of an event.
  Event
I represent a VEVENT entry in a calendar for our purposes.
  EventSet
I represent a set of VEVENT entries in a calendar sharing the same uid.
  Calendar
I represent a parsed iCalendar resource.
Functions [hide private]
datetime.datetime or anything
_toDateTime(d)
If d is a datetime.date, convert it to datetime.datetime.
source code
 
vDDDToDatetime(v)
Convert a vDDDType to a datetime, respecting timezones.
source code
Calendar
fromICalendar(iCalendar)
Parse an icalendar Calendar object into our Calendar object.
source code
Calendar
fromFile(file)
Create a new calendar from an open file object.
source code
Variables [hide private]
  HAS_ICALENDAR = False
  HAS_DATEUTIL = False
  LOCAL = LocalTimezone()
  UTC = UTC
  __package__ = None
hash(x)
Function Details [hide private]

_toDateTime(d)

source code 

If d is a datetime.date, convert it to datetime.datetime.

Parameters:
  • d (anything)
Returns: datetime.datetime or anything
The equivalent datetime.datetime if d is a datetime.date; d if not

vDDDToDatetime(v)

source code 

Convert a vDDDType to a datetime, respecting timezones.

Parameters:
  • v (icalendar.prop.vDDDTypes) - the time to convert

fromICalendar(iCalendar)

source code 

Parse an icalendar Calendar object into our Calendar object.

Parameters:
Returns: Calendar

fromFile(file)

source code 

Create a new calendar from an open file object.

Parameters:
  • file (file object)
Returns: Calendar