예제 #1
0
 def pedataFinished(self, result):
     self.notifyStatus(result)
     self.waitCursor(False)
     template = None
     if result['statuscode'] == 0:         
         template = VBTemplateHelper.buildPEDataPage(result['answer'])               
     else:
         template = VBTemplateHelper.loadTemplate('nodata')
     
     if template is not None:
         self.ui.textBrowserPEInfo.setHtml(template)
         self.otherInfosAvailability['pedata'] = True
     else:
         self.notifyStatus({
             'statuscode': 1,
             'message': 'Template could not be loaded'
         })
         self.otherInfosAvailability['pedata'] = False
예제 #2
0
    def pedataFinished(self, result):
        self.notifyStatus(result)
        self.waitCursor(False)
        template = None
        if result['statuscode'] == 0:
            template = VBTemplateHelper.buildPEDataPage(result['answer'])
        else:
            template = VBTemplateHelper.loadTemplate('nodata')

        if template is not None:
            self.ui.textBrowserPEInfo.setHtml(template)
            self.otherInfosAvailability['pedata'] = True
        else:
            self.notifyStatus({
                'statuscode': 1,
                'message': 'Template could not be loaded'
            })
            self.otherInfosAvailability['pedata'] = False