summaryrefslogtreecommitdiff
path: root/src/projManagement/Validation.py
diff options
context:
space:
mode:
authornilshah982019-06-25 12:55:20 +0530
committernilshah982019-06-25 12:55:20 +0530
commitc263636b86d204c9500ed2fe58e4f9db74c28bee (patch)
treefc23c9c31d0821fa0deec33aa452f70df602217d /src/projManagement/Validation.py
parent73399832febef4407eb8d8a9e57d535f18b18654 (diff)
downloadeSim-c263636b86d204c9500ed2fe58e4f9db74c28bee.tar.gz
eSim-c263636b86d204c9500ed2fe58e4f9db74c28bee.tar.bz2
eSim-c263636b86d204c9500ed2fe58e4f9db74c28bee.zip
Resolves #100
Diffstat (limited to 'src/projManagement/Validation.py')
-rw-r--r--src/projManagement/Validation.py18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/projManagement/Validation.py b/src/projManagement/Validation.py
index 79e458d8..65103282 100644
--- a/src/projManagement/Validation.py
+++ b/src/projManagement/Validation.py
@@ -22,8 +22,6 @@ import re
import distutils.spawn
-
-
class Validation:
"""
This is Validation class use for validating Project.
@@ -41,12 +39,13 @@ class Validation:
projName is same as the folder selected
@params
- :projDir => contains the path of the project folder selected to open
+ :projDir => contains the path of the project folder selected\
+ to open
@return
True => If the folder contains the projName.proj file
False => If the folder doesn't contain projName.proj file
- """
+ """
print("Function: Validating Open Project Information")
projName = os.path.basename(str(projDir))
lookProj = os.path.join(str(projDir), projName + ".proj")
@@ -56,8 +55,6 @@ class Validation:
else:
return False
-
-
def validateNewproj(self, projDir):
"""
Validate new project created
@@ -69,7 +66,7 @@ class Validation:
:"CHECKEXIST" => If smae project name folder exists
:"CHECKNAME" => If space is there in name
:"VALID" => If valid project name given
- """
+ """
print("Function: Validating New Project Information")
# Checking existence of project with same name
@@ -82,8 +79,6 @@ class Validation:
else:
return "VALID"
-
-
def validateKicad(self, projDir):
"""
Validate if projDir is set appropriately in the function calling file
@@ -103,8 +98,6 @@ class Validation:
else:
return True
-
-
def validateCir(self, projDir):
"""
Validate if cir file present in the directory with the appropriate .cir
@@ -132,7 +125,8 @@ class Validation:
@params
:subDir => the path of the subcircuit directory
- :giveNum => the number of port calculated and passed for validation
+ :giveNum => the number of port calculated and passed for\
+ validation
@return
True