summaryrefslogtreecommitdiff
path: root/src/projManagement/openProject.py
diff options
context:
space:
mode:
authorfahim2015-06-08 14:21:19 +0530
committerfahim2015-06-08 14:21:19 +0530
commita783d14e674082a49ab5d5b7943ec5fc1f4c98f2 (patch)
tree3c89bbf40981d76b108d052967656f6c27652a4f /src/projManagement/openProject.py
parent2a87f0eae40b90cc0657e46cbb8532d99f9373ab (diff)
downloadeSim-a783d14e674082a49ab5d5b7943ec5fc1f4c98f2.tar.gz
eSim-a783d14e674082a49ab5d5b7943ec5fc1f4c98f2.tar.bz2
eSim-a783d14e674082a49ab5d5b7943ec5fc1f4c98f2.zip
Subject: Added Note Area changes
Description: Added Note Area Changes
Diffstat (limited to 'src/projManagement/openProject.py')
-rw-r--r--src/projManagement/openProject.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/projManagement/openProject.py b/src/projManagement/openProject.py
index 83fc1a41..c0733058 100644
--- a/src/projManagement/openProject.py
+++ b/src/projManagement/openProject.py
@@ -39,7 +39,7 @@ class OpenProjectInfo(QtGui.QWidget):
self.projDir=QtGui.QFileDialog.getExistingDirectory(self,"open",self.openDir)
if self.obj_validation.validateOpenproj(self.projDir) == True:
#print "Pass open project test"
- self.obj_Appconfig = Appconfig()
+ #self.obj_Appconfig = Appconfig()
self.obj_Appconfig.current_project['ProjectName'] = str(self.projDir)
if os.path.isdir(self.projDir):
print "true"
@@ -49,16 +49,22 @@ class OpenProjectInfo(QtGui.QWidget):
files = filelist
self.obj_Appconfig.project_explorer[dirs] = filelist
json.dump(self.obj_Appconfig.project_explorer, open(self.obj_Appconfig.dictPath,'w'))
+ self.obj_Appconfig.print_info('Open Project called')
+ self.obj_Appconfig.print_info('Current Project is ' + self.projDir)
return dirs, filelist
else:
#print "Failed open project test"
+ self.obj_Appconfig.print_error("The project doesn't contain .proj file. Please select the proper directory else you won't be able to perform any operation")
reply = QtGui.QMessageBox.critical(None, "Error Message",'''<b> Error: The project doesn't contain .proj file.</b><br/>
<b>Please select the proper project directory else you won't be able to perform any operation</b>''',QtGui.QMessageBox.Ok|QtGui.QMessageBox.Cancel)
+
if reply == QtGui.QMessageBox.Ok:
self.body()
+ self.obj_Appconfig.print_info('Open Project called')
+ self.obj_Appconfig.print_info('Current Project is ' + self.projDir)
elif reply == QtGui.QMessageBox.Cancel:
- pass
+ self.obj_Appconfig.print_info('No Project opened')
else:
pass