Example #1
0
 def coursehistories(self):
   return [CourseHistory(pcr(middle=ch['path'])) for ch in self.raw['histories']]
Example #2
0
 def instructors(self):
   middle = ''.join(('course/',str(self.id),'/sections'))
   sections = pcr(middle=middle)['values']
   return [instructor['name'] for section in sections for instructor in section['instructors']]
Example #3
0
 def courses(self):
   return [Course(pcr(middle=''.join(('course/',str(rawcourse['id']))))) for rawcourse in self.raw['courses']]
Example #4
0
def department(request, dept):
    d = Department(pcr("".join(("dept/", dept))))
    return render_to_response("department.html", {"c": d.coursehistories})