Ejemplo n.º 1
0
 def input_validation(self):
     # super().input_validation()
     inputError = self.form["inputError"]
     if (DataValidator.isNull(self.form["name"])):
         inputError["name"] = "Name can not be null"
         self.form["error"] = True
     if (DataValidator.isNull(self.form["description"])):
         inputError["description"] = "Description can not be null"
         self.form["error"] = True
     return self.form["error"]
Ejemplo n.º 2
0
    def input_validation(self):
        super().input_validation()
        inputError = self.form["inputError"]
        if (DataValidator.isNull(self.form["firstName"])):
            inputError["firstName"] = "Name can not be null"
            self.form["error"] = True
        if (DataValidator.isNull(self.form["lastName"])):
            inputError["lastName"] = "Last Name can not be null"
            self.form["error"] = True
        if (DataValidator.isNull(self.form["login_id"])):
            inputError["login_id"] = "Login can not be null"
            self.form["error"] = True
        if (DataValidator.isNull(self.form["password"])):
            inputError["password"] = "******"
            self.form["error"] = True
        if (DataValidator.isNull(self.form["confirmpassword"])):
            inputError["confirmpassword"] = "******"
            self.form["error"] = True
        if (DataValidator.isNotNull(self.form["confirmpassword"])):
            if (self.form["password"] != self.form["confirmpassword"]):
                inputError[
                    "conpassword"] = "******"
                self.form["error"] = True

        if (DataValidator.isNull(self.form["dob"])):
            inputError["dob"] = "dob can not be null"
            self.form["error"] = True
        if (DataValidator.isNull(self.form["address"])):
            inputError["address"] = "address can not be null"
            self.form["error"] = True
        if (DataValidator.isNull(self.form["mobilenumber"])):
            inputError["mobilenumber"] = "mobileNumber can not be null"
            self.form["error"] = True
        return self.form["error"]
Ejemplo n.º 3
0
    def input_validation(self):
        super().input_validation()
        inputError = self.form["inputError"]
        if (DataValidator.isNull(self.form["login_id"])):
            inputError["login_id"] = "Login can not be null"
            self.form["error"] = True
        if (DataValidator.isNull(self.form["password"])):
            inputError["password"] = "******"
            self.form["error"] = True

        return self.form["error"]
Ejemplo n.º 4
0
    def input_validation(self):
        inputError = self.form["inputError"]
        if (DataValidator.isNull(self.form["courseName"])):
            inputError["courseName"] = "courseName can not be null"
            self.form["error"] = True

        if (DataValidator.isNull(self.form["courseDescription"])):
            inputError[
                "courseDescription"] = "courseDescription can not be null"
            self.form["error"] = True

        if (DataValidator.isNull(self.form["courseDuration"])):
            inputError["courseDuration"] = "courseDuration can not be null"
            self.form["error"] = True

        return self.form["error"]
Ejemplo n.º 5
0
    def input_validation(self):
        # super().input_validation()
        inputError = self.form["inputError"]
        if (DataValidator.isNull(self.form["subjectName"])):
            inputError["subjectName"] = " subjectName can not be null"
            self.form["error"] = True

        if (DataValidator.isNull(self.form["subjectDescription"])):
            inputError[
                "subjectDescription"] = "subjectDescription can not be null"
            self.form["error"] = True

        if (DataValidator.isNull(self.form["course_ID"])):
            inputError["course_ID"] = "course_ID can not be null"
            self.form["error"] = True

        return self.form["error"]
Ejemplo n.º 6
0
    def input_validation(self):
        inputError = self.form["inputError"]
        if (DataValidator.isNull(self.form["firstName"])):
            inputError["firstName"] = "Name can not be null"
            self.form["error"] = True

        if (DataValidator.isNull(self.form["lastName"])):
            inputError["lastName"] = "last name can not be null"
            self.form["error"] = True

        if (DataValidator.isNull(self.form["email"])):
            inputError["email"] = "email can not be null"
            self.form["error"] = True

        if (DataValidator.isNull(self.form["password"])):
            inputError["password"] = "******"
            self.form["error"] = True

        if (DataValidator.isNull(self.form["address"])):
            inputError["address"] = "Address can not be null"
            self.form["error"] = True

        if (DataValidator.isNull(self.form["gender"])):
            inputError["gender"] = "gender can not be null"
            self.form["error"] = True

        if (DataValidator.isNull(self.form["dob"])):
            inputError["dob"] = "dob can not be null"
            self.form["error"] = True

        if (DataValidator.isNull(self.form["college_ID"])):
            inputError["college_ID"] = "college_ID can not be null"
            self.form["error"] = True

        if (DataValidator.isNull(self.form["subject_ID"])):
            inputError["subject_ID"] = "subject_ID can not be null"
            self.form["error"] = True

        if (DataValidator.isNull(self.form["course_ID"])):
            inputError["course_ID"] = "course_ID can not be null"
            self.form["error"] = True
        return self.form["error"]
Ejemplo n.º 7
0
    def input_validation(self):
        inputError = self.form["inputError"]
        if (DataValidator.isNull(self.form["collegeName"])):
            inputError["collegeName"] = "Name can not be null"
            self.form["error"] = True

        if (DataValidator.isNull(self.form["collegeAddress"])):
            inputError["collegeAddress"] = "Address can not be null"
            self.form["error"] = True

        if (DataValidator.isNull(self.form["collegeState"])):
            inputError["collegeState"] = "State can not be null"
            self.form["error"] = True

        if (DataValidator.isNull(self.form["collegeCity"])):
            inputError["collegeCity"] = "City can not be null"
            self.form["error"] = True
        if (DataValidator.isNull(self.form["collegePhoneNumber"])):
            inputError["collegePhoneNumber"] = "PhoneNumber can not be null"
            self.form["error"] = True
        return self.form["error"]
Ejemplo n.º 8
0
    def input_validation(self):
        super().input_validation()
        inputError = self.form["inputError"]
        if (DataValidator.isNull(self.form["rollNumber"])):
            inputError["rollNumber"] = "roll Number can not be null"
            self.form["error"] = True

        if (DataValidator.isNull(self.form["name"])):
            inputError["name"] = "name can not be null"
            self.form["error"] = True

        if (DataValidator.isNull(self.form["physics"])):
            inputError["physics"] = "physics can not be null"
            self.form["error"] = True

        if (DataValidator.isNull(self.form["chemistry"])):
            inputError["chemistry"] = "chemistry can not be null"
            self.form["error"] = True
        if (DataValidator.isNull(self.form["maths"])):
            inputError["maths"] = "maths can not be null"
            self.form["error"] = True
        if (DataValidator.isNull(self.form["student_ID"])):
            inputError["student_ID"] = "student_ID can not be null"
            self.form["error"] = True

        return self.form["error"]
Ejemplo n.º 9
0
    def input_validation(self):
        super().input_validation()
        inputError = self.form["inputError"]
        if (DataValidator.isNull(self.form["firstName"])):
            inputError["firstName"] = " First_Name can not be null"
            self.form["error"] = True

        if (DataValidator.isNull(self.form["lastName"])):
            inputError["lastName"] = "Last_Name can not be null"
            self.form["error"] = True

        if (DataValidator.isNull(self.form["dob"])):
            inputError["dob"] = "dob can not be null"
            self.form["error"] = True

        if (DataValidator.isNull(self.form["mobileNumber"])):
            inputError["mobileNumber"] = "Mobile_Number can not be null"
            self.form["error"] = True

        if (DataValidator.isNull(self.form["email"])):
            inputError["email"] = "email_id can not be null"
            self.form["error"] = True

        if (DataValidator.isNull(self.form["college_ID"])):
            inputError["college_ID"] = "college_ID can not be null"
            self.form["error"] = True

        return self.form["error"]
Ejemplo n.º 10
0
    def input_validation(self):
        super().input_validation()
        inputError = self.form["inputError"]
        if (DataValidator.isNull(self.form["rollNumber"])):
            inputError["rollNumber"] = "roll Number can not be null"
            self.form["error"] = True

        if (DataValidator.isNull(self.form["name"])):
            inputError["name"] = "name can not be null"
            self.form["error"] = True

        if (DataValidator.ischeck(self.form["physics"])):
            inputError["physics"] = "Enter marks 1 to 100"
            self.form["error"] = True

        if (DataValidator.isNull(self.form["physics"])):
            inputError["physics"] = "physics marks can not be null"
            self.form["error"] = True

        if (DataValidator.ischeck(self.form["chemistry"])):
            inputError["chemistry"] = "Enter marks 1 to 100"
            self.form["error"] = True

        if (DataValidator.isNull(self.form["chemistry"])):
            inputError["chemistry"] = "chemistry marks can not be null"
            self.form["error"] = True

        if (DataValidator.ischeck(self.form["maths"])):
            inputError["maths"] = "Enter marks 1 to 100"
            self.form["error"] = True

        if (DataValidator.isNull(self.form["maths"])):
            inputError["maths"] = "maths marks can not be null"
            self.form["error"] = True

        return self.form["error"]