diff options
author | fahim | 2015-03-02 15:38:40 +0530 |
---|---|---|
committer | fahim | 2015-03-02 15:38:40 +0530 |
commit | 05de80920118454a0e08b6a41e6ee5eb81d09a8e (patch) | |
tree | 9901dd5ccd896630b08491e38bdd42dbbc31652e /src/projManagement/newProject.py | |
parent | b8a87cdb785471005e96234782287528e3edc39c (diff) | |
download | eSim-05de80920118454a0e08b6a41e6ee5eb81d09a8e.tar.gz eSim-05de80920118454a0e08b6a41e6ee5eb81d09a8e.tar.bz2 eSim-05de80920118454a0e08b6a41e6ee5eb81d09a8e.zip |
Subject: Changes name from ecSim to eSim
Description: Changes name from ecSim to eSim
Diffstat (limited to 'src/projManagement/newProject.py')
-rw-r--r-- | src/projManagement/newProject.py | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/projManagement/newProject.py b/src/projManagement/newProject.py index f496b490..c76acdc1 100644 --- a/src/projManagement/newProject.py +++ b/src/projManagement/newProject.py @@ -12,7 +12,7 @@ # BUGS: --- # NOTES: --- # AUTHOR: Fahim Khan, fahim.elex@gmail.com -# ORGANIZATION: ecSim team at FOSSEE, IIT Bombay. +# ORGANIZATION: eSim team at FOSSEE, IIT Bombay. # CREATED: Wednesday 12 February 2015 # REVISION: --- #=============================================================================== @@ -67,10 +67,14 @@ class NewProjectInfo(QtGui.QWidget): self.projDir = os.path.join(self.workspace,str(self.projName)) - + print "Project Name:",self.projName #Validation for newProject - self.reply = self.obj_validation.validateNewproj(str(self.projDir)) + if self.projName == "": + self.reply = "NONE" + else: + self.reply = self.obj_validation.validateNewproj(str(self.projDir)) + #Checking Validations Response if self.reply == "VALID": print "Validated : Creating project directory" #create project directory @@ -103,6 +107,12 @@ class NewProjectInfo(QtGui.QWidget): self.msg.showMessage('The project name should not contain space between them') self.msg.setWindowTitle("Error Message") + elif self.reply == "NONE": + print "Empyt Project Name" + self.msg = QtGui.QErrorMessage(self) + self.msg.showMessage('The project name cannot be empty') + self.msg.setWindowTitle("Error Message") + def cancelProject(self): self.close() |