示例#1
0
class TextMatch(ValuedBaseElement):
    tag = ns("C", "text-match")

    def __init__(self, value, collation="i;octet", negate=False):
        super(TextMatch, self).__init__(value=value)
        self.attributes['collation'] = collation
        if negate:
            self.attributes['negate-condition'] = "yes"
示例#2
0
文件: cdav.py 项目: ri0t/caldav
class Expand(BaseElement):
    tag = ns("C", "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")
示例#3
0
class Expand(BaseElement):
    tag = ns("C", "expand")

    def __init__(self, start, end=None):
        super(Expand, self).__init__()
        if start is not None:
            self.attributes['start'] = _to_utc_date_string(start)
        if end is not None:
            self.attributes['end'] = _to_utc_date_string(end)
示例#4
0
class TimeRange(BaseElement):
    tag = ns("C", "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")
示例#5
0
class TimeRange(BaseElement):
    tag = ns("C", "time-range")

    def __init__(self, start=None, end=None):
        ## start and end should be an icalendar "date with UTC time",
        ## ref https://tools.ietf.org/html/rfc4791#section-9.9
        super(TimeRange, self).__init__()
        if start is not None:
            self.attributes['start'] = _to_utc_date_string(start)
        if end is not None:
            self.attributes['end'] = _to_utc_date_string(end)
示例#6
0
class MaxAttendeesPerInstance(ValuedBaseElement):
    tag = ns("C", "max-attendees-per-instance")
示例#7
0
class Propfind(BaseElement):
    tag = ns("D", "propfind")
示例#8
0
class CalendarData(BaseElement):
    tag = ns("C", "calendar-data")
示例#9
0
class ParamFilter(NamedBaseElement):
    tag = ns("C", "param-filter")
示例#10
0
class CompFilter(NamedBaseElement):
    tag = ns("C", "comp-filter")
示例#11
0
class Mkcalendar(BaseElement):
    tag = ns("C", "mkcalendar")
示例#12
0
class CalendarTimeZone(ValuedBaseElement):
    tag = ns("C", "calendar-timezone")
示例#13
0
class CalendarDescription(ValuedBaseElement):
    tag = ns("C", "calendar-description")
示例#14
0
class Calendar(BaseElement):
    tag = ns("C", "calendar")
示例#15
0
class CalendarHomeSet(BaseElement):
    tag = ns("C", "calendar-home-set")
示例#16
0
class Comp(NamedBaseElement):
    tag = ns("C", "comp")
示例#17
0
class CalendarQuery(BaseElement):
    tag = ns("C", "calendar-query")
示例#18
0
class SupportedCalendarComponentSet(ValuedBaseElement):
    tag = ns("C", "supported-calendar-component-set")
示例#19
0
class FreeBusyQuery(BaseElement):
    tag = ns("C", "free-busy-query")
示例#20
0
class SupportedCalendarData(ValuedBaseElement):
    tag = ns("C", "supported-calendar-data")
示例#21
0
class Filter(BaseElement):
    tag = ns("C", "filter")
示例#22
0
class MaxResourceSize(ValuedBaseElement):
    tag = ns("C", "max-resource-size")
示例#23
0
class PropFilter(NamedBaseElement):
    tag = ns("C", "prop-filter")
示例#24
0
class MinDateTime(ValuedBaseElement):
    tag = ns("C", "min-date-time")
示例#25
0
class Status(BaseElement):
    tag = ns("D", "status")
示例#26
0
class Response(BaseElement):
    tag = ns("D", "response")
示例#27
0
class NotDefined(BaseElement):
    tag = ns("C", "is-not-defined")
示例#28
0
class MaxInstances(ValuedBaseElement):
    tag = ns("C", "max-instances")
示例#29
0
class MaxDateTime(ValuedBaseElement):
    tag = ns("C", "max-date-time")
示例#30
0
class CurrentUserPrincipal(BaseElement):
    tag = ns("D", "current-user-principal")