Пример #1
0
 def behaviorsFinished(self, result):        
     self.notifyStatus(result)
     self.waitCursor(False)
     template = None
     if result['statuscode'] == 0:         
         template = VBTemplateHelper.loadTemplate('underconstruct')
         # Should be implemented on next version to show actual data
     else:
         template = VBTemplateHelper.loadTemplate('nodata')
     
     if template is not None:
         self.ui.textBrowserBehavior.setHtml(template)
         self.otherInfosAvailability['behaviors'] = True
     else:
         self.notifyStatus({
             'statuscode': 1,
             'message': 'Template could not be loaded'
         })
         self.otherInfosAvailability['behaviors'] = False
Пример #2
0
    def behaviorsFinished(self, result):
        self.notifyStatus(result)
        self.waitCursor(False)
        template = None
        if result['statuscode'] == 0:
            template = VBTemplateHelper.loadTemplate('underconstruct')
            # Should be implemented on next version to show actual data
        else:
            template = VBTemplateHelper.loadTemplate('nodata')

        if template is not None:
            self.ui.textBrowserBehavior.setHtml(template)
            self.otherInfosAvailability['behaviors'] = True
        else:
            self.notifyStatus({
                'statuscode': 1,
                'message': 'Template could not be loaded'
            })
            self.otherInfosAvailability['behaviors'] = False
Пример #3
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
Пример #4
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