def __getKeyTemplateInfo(self, args):
        if not self.__checkContext(): return
        if not self.__checkCardInfo(): return
        if not self.__checkSecurityInfo(): return

        try:
            self.__handler.handleLog('getKeyTemplateInfo: Start ...')
            kits = gp.getKeyInformationTemplates(self.__context, self.__cardInfo, self.__securityInfo, 0)
            self.__handler.handleKeyInformationTemplates(kits)
            self.__handler.handleLog('getKeyTemplateInfo: succeeded.')
        except Exception, e:
            self.__handler.handleException(e)
Beispiel #2
0
    def __getKeyTemplateInfo(self, args):
        if not self.__checkContext(): return
        if not self.__checkCardInfo(): return
        if not self.__checkSecurityInfo(): return

        self.__handler.handleActionBegin("get key template information")

        try:
            self.__handler.handleLog('getKeyTemplateInfo: Start ...')
            kits = gp.getKeyInformationTemplates(self.__context,
                                                 self.__cardInfo,
                                                 self.__securityInfo, 0)
            self.__handler.handleKeyInformationTemplates(kits)
            self.__handler.handleLog('getKeyTemplateInfo: succeeded.',
                                     wx.LOG_Info)
        except Exception, e:
            self.__handler.handleException(e)
Beispiel #3
0
 def getKeyInformationTemplates(self):
     self.__checkContext()
     self.__checkCardInfo()
     self.__checkSecurityInfo()
     return gp.getKeyInformationTemplates(self.__context, self.__cardInfo, self.__securityInfo, 0)