示例#1
0
 def coursehistories(self):
   return [CourseHistory(pcr(middle=ch['path'])) for ch in self.raw['histories']]
示例#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']]
示例#3
0
 def courses(self):
   return [Course(pcr(middle=''.join(('course/',str(rawcourse['id']))))) for rawcourse in self.raw['courses']]
示例#4
0
文件: views.py 项目: gterrono/pcrsite
def department(request, dept):
    d = Department(pcr("".join(("dept/", dept))))
    return render_to_response("department.html", {"c": d.coursehistories})