Permalink
Switch branches/tags
Nothing to show
Find file
64eff55 May 14, 2012
18 lines (13 sloc) 508 Bytes
from Person import Person
from Schedule import Schedule
class Professor(Person):
def __init__(self, teachingSchedule=None, **kwargs):
Person.__init__(self, **kwargs)
if teachingSchedule is None:
self.teachingSchedule = Schedule()
else:
self.teachingSchedule = teachingSchedule
def getSchedule(self, daysFilter):
return self.teachingSchedule.getDescription(daysFilter)
def getTeachingSchedule(self):
return self.teachingSchedule