def __init__(self, calendarUrl, calendarName, cTag, client=None, hostname=None): self.hostname = util.getHostnameFromUrl(hostname) self.calendarId = util.splitIdfromUrl(calendarUrl) self.calendarUrl = calendarUrl self.calendarName = calendarName self.cTag = cTag self.domainUrl = self.hostname + calendarUrl self.client = client self.eventList = None
def __init__(self, eventUrl, eTag): self.eventUrl = eventUrl self.eventId = util.splitIdfromUrl(eventUrl) self.eTag = eTag
def addEvent(host_name, user_id, calendar_id, event_url, e_tag): result = db_connector.query( "insert into event (host_name, user_id, calendar_id, event_id, event_url, e_tag) values (%s, %s, %s, %s, %s, %s)", (host_name, user_id, calendar_id, util.splitIdfromUrl(event_url), event_url, e_tag))
def __init__(self, eventUrl, eTag, eventData=None): self.eventUrl = eventUrl self.eventId = util.splitIdfromUrl(eventUrl) self.eTag = eTag if eventData is not None: self.eventData = util.parseICS(eventData)