def get(self): calendar = ManUpCalendar() feed = calendar.get_feed() for entry in feed.entry: for a_when in entry.when: date_string = a_when.start_raw[:19] date = datetime.datetime.strptime(date_string, '%Y-%m-%dT%H:%M:%S') for where in entry.where: meeting = Meeting(name=entry.title.text, start_date=date, location=where.value) meeting.put()
def get_feed(self, start, end): calendar = ManUpCalendar() return calendar.get_feed(start_date=start, end_date=end)