equal
deleted
inserted
replaced
400 if path.startswith("BeremizRoot.Libraries."): |
400 if path.startswith("BeremizRoot.Libraries."): |
401 wx.CallAfter(self.RefreshConfNodesBlockLists) |
401 wx.CallAfter(self.RefreshConfNodesBlockLists) |
402 return res |
402 return res |
403 |
403 |
404 # helper func to check project path write permission |
404 # helper func to check project path write permission |
405 def CheckProjectPathPerm(self, dosave=True): |
405 def CheckProjectPathPerm(self): |
406 if CheckPathPerm(self.ProjectPath): |
406 if CheckPathPerm(self.ProjectPath): |
407 return True |
407 return True |
408 if self.AppFrame is not None: |
408 if self.AppFrame is not None: |
409 dialog = wx.MessageDialog( |
409 dialog = wx.MessageDialog( |
410 self.AppFrame, |
410 self.AppFrame, |
575 answer = dialog.ShowModal() |
575 answer = dialog.ShowModal() |
576 return answer == wx.ID_YES |
576 return answer == wx.ID_YES |
577 return True |
577 return True |
578 |
578 |
579 def SaveProject(self, from_project_path=None): |
579 def SaveProject(self, from_project_path=None): |
580 if self.CheckProjectPathPerm(False): |
580 if self.CheckProjectPathPerm(): |
581 if from_project_path is not None: |
581 if from_project_path is not None: |
582 old_projectfiles_path = self._getProjectFilesPath( |
582 old_projectfiles_path = self._getProjectFilesPath( |
583 from_project_path) |
583 from_project_path) |
584 if os.path.isdir(old_projectfiles_path): |
584 if os.path.isdir(old_projectfiles_path): |
585 copy_tree(old_projectfiles_path, |
585 copy_tree(old_projectfiles_path, |