summaryrefslogtreecommitdiff
path: root/src/projManagement/Validation.py
diff options
context:
space:
mode:
authorfahim2015-02-17 15:13:02 +0530
committerfahim2015-02-17 15:13:02 +0530
commit756ad7fcfe3e9cb7f1c90e0c773cfb46243a2496 (patch)
tree915c62da4d5df5d06f307c73e81defa976e02b46 /src/projManagement/Validation.py
parent74d560add00621421d366759bcc80900d8e14d8a (diff)
downloadeSim-756ad7fcfe3e9cb7f1c90e0c773cfb46243a2496.tar.gz
eSim-756ad7fcfe3e9cb7f1c90e0c773cfb46243a2496.tar.bz2
eSim-756ad7fcfe3e9cb7f1c90e0c773cfb46243a2496.zip
Subject: openProject and Validation
Description: Included openProject and Validation module
Diffstat (limited to 'src/projManagement/Validation.py')
-rw-r--r--src/projManagement/Validation.py40
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