diff options
author | fahim | 2015-04-22 17:52:04 +0530 |
---|---|---|
committer | fahim | 2015-04-22 17:52:04 +0530 |
commit | 342730ed59f75ebe1b5df0f886ae9e6bcd787ee6 (patch) | |
tree | 759bb8348608c67057aa58b4c654d9cb2339f62d /src/projManagement/Validation.py | |
parent | af98d04dd0a438b7dd63ff72c71f0ceb695fe704 (diff) | |
download | eSim-342730ed59f75ebe1b5df0f886ae9e6bcd787ee6.tar.gz eSim-342730ed59f75ebe1b5df0f886ae9e6bcd787ee6.tar.bz2 eSim-342730ed59f75ebe1b5df0f886ae9e6bcd787ee6.zip |
Subject: Added Device Libarary Tab.Few Changes in Workspace class.
Description: Completed the Device Library auto creation of Widget. Added
the information to schematicInfo.Hence to the final ".cir.out" file.
Added sample device library.
Deleted/Comment unwanted print statement.
Added details of function in the comment.
Diffstat (limited to 'src/projManagement/Validation.py')
-rw-r--r-- | src/projManagement/Validation.py | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/src/projManagement/Validation.py b/src/projManagement/Validation.py index 33f0894f..a3d84979 100644 --- a/src/projManagement/Validation.py +++ b/src/projManagement/Validation.py @@ -21,11 +21,19 @@ import re class Validation: + """ + This is Validation class use for validating Project. + e.g if .proj is present in project directory + or if new project name is already exist in workspace etc + """ def __init__(self): pass def validateOpenproj(self,projDir): - print "Validate openProj called" + """ + This function validate Open Project Information. + """ + print "Validating Open Project Information" projName = os.path.basename(str(projDir)) lookProj = os.path.join(str(projDir),projName+".proj") #Check existence of project @@ -33,13 +41,14 @@ class Validation: return True else: return False - def validateNewproj(self,projDir): - print "Validate newProj called" - print "Project Directory : ",projDir + """This Project Validate New Project Information + """ + print "Validating New Project Information" + #print "Project Directory : ",projDir #Checking existence of project with same name if os.path.exists(projDir): @@ -52,6 +61,9 @@ class Validation: return "VALID" def validateKicad(self,projDir): + """ + This function validate if Kicad components are present + """ print "Validation for Kicad components" if projDir == None: return False @@ -59,7 +71,10 @@ class Validation: return True def validateCir(self,projDir): - print "Checking if .cir file is present or not" + """ + 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 |