Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 def __init__(self, eventUrl, eTag):
     self.eventUrl = eventUrl
     self.eventId = util.splitIdfromUrl(eventUrl)
     self.eTag = eTag
Exemplo n.º 3
0
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))
Exemplo n.º 4
0
 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)