Beispiel #1
0
 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()
Beispiel #2
0
 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()
Beispiel #3
0
 def get_feed(self, start, end):
     calendar = ManUpCalendar()
     return calendar.get_feed(start_date=start, end_date=end)
Beispiel #4
0
 def get_feed(self, start, end):
     calendar = ManUpCalendar()
     return calendar.get_feed(start_date=start, end_date=end)