class Expand(BaseElement): tag = ns("caldav", "expand") def __init__(self, start, end=None): super(Expand, self).__init__() self.attributes['start'] = start.strftime("%Y%m%dT%H%M%SZ") if end is not None: self.attributes['end'] = end.strftime("%Y%m%dT%H%M%SZ")
class TextMatch(ValuedBaseElement): tag = ns("caldav", "text-match") def __init__(self, value, collation="i;octet", negate=False): super(TextMatch, self).__init__(value=value) self.attributes['collation'] = collation self.attributes['negate'] = "no" if negate: self.attributes['negate'] = "yes"
class TimeRange(BaseElement): tag = ns("caldav", "time-range") def __init__(self, start=None, end=None): super(TimeRange, self).__init__() if start is not None: self.attributes['start'] = \ start.strftime("%Y%m%dT%H%M%SZ") if end is not None: self.attributes['end'] = end.strftime("%Y%m%dT%H%M%SZ")
class MaxResourceSize(ValuedBaseElement): tag = ns("caldav", "max-resource-size")
class CalendarDescription(ValuedBaseElement): tag = ns("caldav", "calendar-description")
class CalendarHomeSet(BaseElement): tag = ns("caldav", "calendar-home-set")
class CalendarCollection(BaseElement): tag = ns("caldav", "calendar-collection")
class NotDefined(BaseElement): tag = ns("caldav", "is-not-defined")
class ScheduleTag(BaseElement): tag = ns("caldav", "schedule-tag")
class CalendarMultiget(BaseElement): tag = ns("caldav", "calendar-multiget")
class MaxAttendeesPerInstance(ValuedBaseElement): tag = ns("caldav", "max-attendees-per-instance")
class MaxInstances(ValuedBaseElement): tag = ns("caldav", "max-instances")
class MaxDateTime(ValuedBaseElement): tag = ns("caldav", "max-date-time")
class MinDateTime(ValuedBaseElement): tag = ns("caldav", "min-date-time")
class Mkcalendar(BaseElement): tag = ns("D", "mkcalendar")
class PropFilter(NamedBaseElement): tag = ns("caldav", "prop-filter")
class ParamFilter(NamedBaseElement): tag = ns("caldav", "param-filter")
class CalendarFreeBusySet(BaseElement): tag = ns("caldav", "calendar-free-busy-set")
class DefaultAlarmVeventDatetime(BaseElement): tag = ns("caldav", "default-alarm-vevent-datetime")
class ScheduleCalendarTransp(BaseElement): tag = ns("caldav", "schedule-calendar-transp")
class CalendarData(BaseElement): tag = ns("caldav", "calendar-data")
class Filter(BaseElement): tag = ns("caldav", "filter")
class Comp(NamedBaseElement): tag = ns("caldav", "comp")
class ScheduleDefaultCalendarUrl(BaseElement): tag = ns("caldav", "schedule-default-calendar-URL")
class CalendarQuery(BaseElement): tag = ns("caldav", "calendar-query")
class SupportedCalendarComponentSets(BaseElement): tag = ns("caldav", "supported-calendar-component-sets")
class Calendar(BaseElement): tag = ns("caldav", "calendar")
class CompFilter(NamedBaseElement): tag = ns("caldav", "comp-filter")
class CalendarTimeZone(ValuedBaseElement): tag = ns("caldav", "calendar-timezone")
class SupportedCalendarData(ValuedBaseElement): tag = ns("caldav", "supported-calendar-data")