diff options
Diffstat (limited to 'src/projManagement/Validation.py')
-rw-r--r-- | src/projManagement/Validation.py | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/projManagement/Validation.py b/src/projManagement/Validation.py new file mode 100644 index 00000000..b53dfe49 --- /dev/null +++ b/src/projManagement/Validation.py @@ -0,0 +1,40 @@ + +#=============================================================================== +# +# FILE: Validation.py +# +# USAGE: --- +# +# DESCRIPTION: This module is use to create validation for openProject,newProject and other activity. +# +# OPTIONS: --- +# REQUIREMENTS: --- +# BUGS: --- +# NOTES: --- +# AUTHOR: Fahim Khan, fahim.elex@gmail.com +# ORGANIZATION: ecSim team at FOSSEE, IIT Bombay. +# CREATED: Wednesday 12 February 2015 +# REVISION: --- +#=============================================================================== +import os + + +class Validation: + def __init__(self): + pass + + def validateOpenproj(self,proj_directory): + print "Valid open Proj called" + tempStr = proj_directory.split('/') + projName = tempStr[len(tempStr)-1] + if os.path.exists(proj_directory+"/"+projName+".proj"): + return True + else: + return False + + + def validateNewproj(self): + print "Valid new Proj called" + + +
\ No newline at end of file |