diff options
Diffstat (limited to 'src/projManagement/Validation.py')
-rw-r--r-- | src/projManagement/Validation.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/projManagement/Validation.py b/src/projManagement/Validation.py index bafcbe08..a582cab5 100644 --- a/src/projManagement/Validation.py +++ b/src/projManagement/Validation.py @@ -34,7 +34,7 @@ class Validation: """ This function validate Open Project Information. """ - print "Validating Open Project Information" + print "Function: Validating Open Project Information" projName = os.path.basename(str(projDir)) lookProj = os.path.join(str(projDir),projName+".proj") #Check existence of project @@ -46,12 +46,12 @@ class Validation: def validateNewproj(self,projDir): - """This Project Validate New Project Information """ - print "Validating New Project Information" - #print "Project Directory : ",projDir + This Project Validate New Project Information + """ + print "Function: Validating New Project Information" + #Checking existence of project with same name - if os.path.exists(projDir): return "CHECKEXIST" #Project with name already exist else: @@ -65,7 +65,7 @@ class Validation: """ This function validate if Kicad components are present """ - print "Validation for Kicad components" + print "FUnction : Validating for Kicad components" if projDir == None: return False else: @@ -75,7 +75,6 @@ class Validation: """ This function checks if ".cir" file is present. """ - #print "Checking if .cir file is present or not" projName = os.path.basename(str(projDir)) lookCir = os.path.join(str(projDir),projName+".cir") #Check existence of project @@ -105,7 +104,9 @@ class Validation: #The number of ports is specified in this line #eg. '.subckt ua741 6 7 3' has 3 ports (6, 7 and 3). numPorts = len(words) - 2 - print "Looksub",lookSub,givenNum,numPorts + print "Looksub : ",lookSub + print "Given Number of ports : ",givenNum + print "Actual Number of ports :",numPorts if numPorts != givenNum: return "PORT" else: |