summaryrefslogtreecommitdiff
path: root/src/projManagement/newProject.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/projManagement/newProject.py')
-rw-r--r--src/projManagement/newProject.py16
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()