Commits

Frederic De Groef  committed 8eb6305

course calendar events should have a group even if it does make any sense

  • Participants
  • Parent commits 29dcaea
  • Branches gehol-2011-2012
  • Tags v0.4.2.1

Comments (0)

Files changed (2)

File examples/test_course_calendar.py

 def test_nonexistent_course():
     course_mnemo = "INFOH999"
     print "Fetching events for non existent course : %s" % course_mnemo
-    gehol_proxy = GeholProxy("164.15.72.157:8080")
+    gehol_proxy = GeholProxy("164.15.72.157:8081")
     try:
         calendar = gehol_proxy.get_course_calendar(course_mnemo)
     except Exception,e:
 
 
 if __name__=="__main__":
-    test_valid_course()
+    test_valid_course("INFOH410")
     print "-----"
     test_nonexistent_course()

File src/gehol/coursecalendar.py

                     current_time = current_time + event['duration']
                     event['organizer'] = ""
                     event['title'] = "%s - %s" % (self.metadata['mnemo'], self.metadata['title'])
+                    event['group'] = ''
                     event_list.append(event)
                 else:
                     current_time += 1