def GetKeyPassphrase(self,queue,incorrect=False): if (incorrect): ppd = passphraseDialog(self.parentWindow,self.progressDialog,wx.ID_ANY,'Unlock Key',self.displayStrings.passphrasePromptIncorrect,"OK","Cancel") else: ppd = passphraseDialog(self.parentWindow,self.progressDialog,wx.ID_ANY,'Unlock Key',self.displayStrings.passphrasePrompt,"OK","Cancel") (canceled,passphrase) = ppd.getPassword() queue.put((canceled,passphrase))
def getLoginPassword(self,incorrect=False): if (not incorrect): ppd = passphraseDialog(self.parentWindow,self.progressDialog,wx.ID_ANY,'Login Password',self.displayStrings.passwdPrompt.format(**self.__dict__),"OK","Cancel") else: ppd = passphraseDialog(self.parentWindow,self.progressDialog,wx.ID_ANY,'Login Password',self.displayStrings.passwdPromptIncorrect.format(**self.__dict__),"OK","Cancel") (canceled,password) = ppd.getPassword() if canceled: self.cancel() return self.password = password event = KeyDist.sshKeyDistEvent(KeyDist.EVT_KEYDIST_COPYID,self) wx.PostEvent(self.notifywindow.GetEventHandler(),event)
def GetKeyPassphrase(self, queue, incorrect=False): if (incorrect): ppd = passphraseDialog( self.parentWindow, self.progressDialog, wx.ID_ANY, 'Unlock Key', self.displayStrings.passphrasePromptIncorrect, "OK", "Cancel") else: ppd = passphraseDialog(self.parentWindow, self.progressDialog, wx.ID_ANY, 'Unlock Key', self.displayStrings.passphrasePrompt, "OK", "Cancel") (canceled, passphrase) = ppd.getPassword() queue.put((canceled, passphrase))
def GetKeyPassphrase(self,incorrect=False): if (incorrect): ppd = passphraseDialog(self.parentWindow,self.progressDialog,wx.ID_ANY,'Unlock Key',self.displayStrings.passphrasePromptIncorrect,"OK","Cancel") else: ppd = passphraseDialog(self.parentWindow,self.progressDialog,wx.ID_ANY,'Unlock Key',self.displayStrings.passphrasePrompt,"OK","Cancel") (canceled,passphrase) = ppd.getPassword() if (canceled): self.cancel("Sorry, I can't continue without the passphrase for that key. If you've forgotten the passphrase, you could remove the key and generate a new one. The key is probably located in\n\n" + self.keyModel.getPrivateKeyFilePath() + "*") return else: self.password = passphrase event = KeyDist.sshKeyDistEvent(KeyDist.EVT_KEYDIST_LOADKEY,self) wx.PostEvent(self.notifywindow.GetEventHandler(),event)
def getLoginPassword(self, incorrect=False): if (not incorrect): ppd = passphraseDialog( self.parentWindow, self.progressDialog, wx.ID_ANY, 'Login Password', self.displayStrings.passwdPrompt.format(**self.__dict__), "OK", "Cancel") else: ppd = passphraseDialog( self.parentWindow, self.progressDialog, wx.ID_ANY, 'Login Password', self.displayStrings.passwdPromptIncorrect.format( **self.__dict__), "OK", "Cancel") (canceled, password) = ppd.getPassword() if canceled: self.cancel() return self.password = password event = KeyDist.sshKeyDistEvent(KeyDist.EVT_KEYDIST_COPYID, self) wx.PostEvent(self.notifywindow.GetEventHandler(), event)
def GetKeyPassphrase(self, incorrect=False): if (incorrect): ppd = passphraseDialog( self.parentWindow, self.progressDialog, wx.ID_ANY, 'Unlock Key', self.displayStrings.passphrasePromptIncorrect, "OK", "Cancel") else: ppd = passphraseDialog(self.parentWindow, self.progressDialog, wx.ID_ANY, 'Unlock Key', self.displayStrings.passphrasePrompt, "OK", "Cancel") (canceled, passphrase) = ppd.getPassword() if (canceled): self.cancel( "Sorry, I can't continue without the passphrase for that key. If you've forgotten the passphrase, you could remove the key and generate a new one. The key is probably located in\n\n" + self.keyModel.getPrivateKeyFilePath() + "*") return else: self.password = passphrase event = KeyDist.sshKeyDistEvent(KeyDist.EVT_KEYDIST_LOADKEY, self) wx.PostEvent(self.notifywindow.GetEventHandler(), event)