def check_before_save(cls, username, password, firstname, lastname, location, abonementtype, abonementstartdate, active): if Utils.isBlank(username) or Utils.isBlank(password) or Utils.isBlank( firstname) or Utils.isBlank(lastname) or Utils.isBlank( location) or Utils.isBlank(active) or Utils.isBlank( abonementtype) or Utils.isBlank(abonementstartdate): raise StudentErrror.StudentWrongInputDataException( "one of the input parameters is wrong. Please check ...")
def check_before_save(cls, username, password, firstname, lastname, location, active): if Utils.isBlank(username) or Utils.isBlank(password) or Utils.isBlank( firstname) or Utils.isBlank(lastname) or Utils.isBlank( location) or Utils.isBlank(active): raise TeacherErrror.TeacherWrongInputDataException( "one of the input parameters is wrong. Please check ...")