def importFile(self): file = open(self.fileName,'r') while True : line = file.readline() if not line : break if line.isspace() : continue data = line.split() asg = Assignment(data[0],data[1],data[2],data[3]) try: repoA.storeA(self, asg, self.studentRepo) except repoException,validatorException: pass
def storeA(self,asg): repoA.storeA(self, asg, self.studentRepo) self.fileStoreA(asg)