File: Student.py

package info (click to toggle)
pyjamas 0.7~%2Bpre2-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 10,656 kB
  • ctags: 12,331
  • sloc: python: 74,493; php: 805; sh: 291; makefile: 59; xml: 9
file content (17 lines) | stat: -rw-r--r-- 486 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from Schedule import Schedule
from Person import Person

class Student(Person):

    def __init__(self, classSchedule=None, **kwargs):
        Person.__init__(self, **kwargs)
        if classSchedule is None:
            self.classSchedule = Schedule()
        else:
            self.classSchedule = classSchedule

    def getSchedule(self, daysFilter):
        return self.classSchedule.getDescription(daysFilter)
    
    def getClassSchedule(self):
        return self.classSchedule