コード例 #1
0
ファイル: GPG.py プロジェクト: sugar-activities/4333-activity
    def __init__(self, encryptedMessage):
        ''' Contructor '''
        if not PEX:
            import dialog
            dialog.error(_('You must install python-pexpect in order to use GPG encode'), \
                None, _('GPG') + ' ' + _('Error'))
            return

        MainEncodeDecode.__init__(self, encryptedMessage)
        self.gui = GPGEncodeDecodeGui()
        self.en = GPGEncodeDecode(self)
        self.Slash = encryptedMessage.Slash
        self.nameGpg = self.gui.askGPGuser(_('this window'))
コード例 #2
0
ファイル: GPG.py プロジェクト: csuarez/emesene-1.6.3-fixed
 def __init__(self, encryptedMessage):
     ''' Contructor '''
     if not PEX:
         import dialog
         dialog.error(_('You must install python-pexpect in order to use GPG encode'), \
             None, _('GPG') + ' ' + _('Error'))
         return 
     
     MainEncodeDecode.__init__(self, encryptedMessage)
     self.gui = GPGEncodeDecodeGui()
     self.en  = GPGEncodeDecode(self)
     self.Slash = encryptedMessage.Slash
     self.nameGpg = self.gui.askGPGuser(_('this window'))
コード例 #3
0
 def __init__(self, encryptedMessage):
     ''' Constructor '''
     MainEncodeDecode.__init__(self, encryptedMessage)
     self.gui = RijndaelEncodeDecodeGui()
     password,saveAns = self.showPasswordWindow()
     MainEncodeDecode.setPassword(self, password)
     MainEncodeDecode.setIsSaved(self, saveAns)
     self.en  = RijndaelEncodeDecode(self)
コード例 #4
0
 def __init__(self, encryptedMessage):
     ''' Constructor '''
     MainEncodeDecode.__init__(self, encryptedMessage)
     self.gui = RijndaelEncodeDecodeGui()
     password, saveAns = self.showPasswordWindow()
     MainEncodeDecode.setPassword(self, password)
     MainEncodeDecode.setIsSaved(self, saveAns)
     self.en = RijndaelEncodeDecode(self)
コード例 #5
0
ファイル: GPG.py プロジェクト: sugar-activities/4333-activity
 def changePassword(self):
     ''' Send to UI Show the Password Change Window and update it '''
     password, saveAns = self.gui.showPasswordWindow()
     MainEncodeDecode.setPassword(self, password)
     MainEncodeDecode.setIsSaved(self, True)
コード例 #6
0
 def changePassword(self):
     ''' Send to UI Show the Password Change Window and update it '''
     password,saveAns = self.gui.showPasswordWindow()
     MainEncodeDecode.setPassword(self, password)
     MainEncodeDecode.setIsSaved(self, True)