def __putKey(self, args): if not self.__checkContext(): return if not self.__checkCardInfo(): return if not self.__checkSecurityInfo(): return oldKVN, newKVN, key1, key2, key3 = args try: self.__handler.handleLog('putKey: Start ...') gp.putSCKey(self.__context, self.__cardInfo, self.__securityInfo, oldKVN, newKVN, None, key1, key2, key3) self.__handler.handleLog('putKey: succeeded.') except Exception, e: self.__handler.handleException(e)
def __putKey(self, args): if not self.__checkContext(): return if not self.__checkCardInfo(): return if not self.__checkSecurityInfo(): return self.__handler.handleActionBegin("put key") oldKVN, newKVN, key1, key2, key3 = args try: self.__handler.handleLog('putKey: Start ...') gp.putSCKey(self.__context, self.__cardInfo, self.__securityInfo, oldKVN, newKVN, None, key1, key2, key3) self.__handler.handleLog('putKey: succeeded.', wx.LOG_Info) except Exception, e: self.__handler.handleException(e)
def putSCKey(self, oldKVN, newKVN, key1, key2, key3): self.__checkContext() self.__checkCardInfo() self.__checkSecurityInfo() gp.putSCKey(self.__context, self.__cardInfo, self.__securityInfo, oldKVN, newKVN, None, key1, key2, key3)