示例#1
0
    def set_coursemanager(self):

        mb=MinervaBot(self.username,self.password,logger=self.logger)

        semester="%s %s"%(self.season,self.year)

        self.cm=mb.get_course_manager(semester,
                                      self.get_departments())
示例#2
0
 def run(self):
     mb=MinervaBot(self.mcgill_user,self.mcgill_pw)
     
     for semester in self.semester_dic:
         departments=self.semester_dic[semester]
         cm=mb.get_course_manager(semester,departments)
         if not cm:
             self.logger.error("Failed to get course manager for %s %s"%(semester,", ".join(departments)))
             continue
             
         for watchitem in self.watchlist:
             if watchitem["semester"]==semester:
                 self.lookup(watchitem,cm)
     
     self.process_course_history()               
示例#3
0
 def run(self):
     mb=MinervaBot(self.mcgill_user,self.mcgill_pw,
                   logger=self.logger)
     
     for semester in self.semester_dic:
         departments=self.semester_dic[semester]
         cm=mb.get_course_manager(semester,departments)
         if not cm:
             self.logger.error("Failed to get course manager for %s %s"%(semester,", ".join(departments)))
             continue
             
         for watchitem in self.watchlist:
             if watchitem["semester"]==semester:
                 self.lookup(watchitem,cm)
     
     self.process_course_history()