blob: 70b29ab5f8092e7e5d2ee02a8b20ab35f74bb0ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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"
projName = os.path.basename(str(proj_directory))
lookProj = os.path.join(str(proj_directory),projName+".proj")
if os.path.exists(lookProj):
return True
else:
return False
def validateNewproj(self):
print "Valid new Proj called"
|