equal
deleted
inserted
replaced
867 # helper func to check project path write permission |
867 # helper func to check project path write permission |
868 def CheckProjectPathPerm(self, dosave=True): |
868 def CheckProjectPathPerm(self, dosave=True): |
869 if CheckPathPerm(self.ProjectPath): |
869 if CheckPathPerm(self.ProjectPath): |
870 return True |
870 return True |
871 dialog = wx.MessageDialog(self.AppFrame, |
871 dialog = wx.MessageDialog(self.AppFrame, |
872 _('You must have write permission to work on the project\nWork on a project copy ?'), |
872 _('You must have permission to work on the project\nWork on a project copy ?'), |
873 _('Error'), |
873 _('Error'), |
874 wx.YES_NO | wx.NO_DEFAULT | wx.ICON_QUESTION) |
874 wx.YES_NO | wx.NO_DEFAULT | wx.ICON_QUESTION) |
875 answer = dialog.ShowModal() |
875 answer = dialog.ShowModal() |
876 dialog.Destroy() |
876 dialog.Destroy() |
877 if answer == wx.ID_YES: |
877 if answer == wx.ID_YES: |