eric7/WebBrowser/VirusTotal/VirusTotalDomainReportDialog.py

branch
eric7
changeset 8563
3c6547443fb2
parent 8561
641304b46f08
child 8881
54e42bc2437a
equal deleted inserted replaced
8562:9250a6d5fde2 8563:3c6547443fb2
18 class VirusTotalDomainReportDialog(QDialog, Ui_VirusTotalDomainReportDialog): 18 class VirusTotalDomainReportDialog(QDialog, Ui_VirusTotalDomainReportDialog):
19 """ 19 """
20 Class implementing a dialog to show the VirusTotal domain report. 20 Class implementing a dialog to show the VirusTotal domain report.
21 """ 21 """
22 def __init__(self, domain, resolutions, urls, subdomains, 22 def __init__(self, domain, resolutions, urls, subdomains,
23 categories, whois, parent=None): 23 categories, webutation, whois, parent=None):
24 """ 24 """
25 Constructor 25 Constructor
26 26
27 @param domain domain name 27 @param domain domain name
28 @type str 28 @type str
33 @param subdomains list of subdomains 33 @param subdomains list of subdomains
34 @type list of str 34 @type list of str
35 @param categories dictionary with various categorizations with keys 35 @param categories dictionary with various categorizations with keys
36 'bitdefender', 'sophos', 'valkyrie', 'alpha', 'forcepoint' 36 'bitdefender', 'sophos', 'valkyrie', 'alpha', 'forcepoint'
37 @type dict 37 @type dict
38 @param webutation dictionary with Webutation data with keys
39 'adult', 'safety', 'verdict'
38 @param whois whois information 40 @param whois whois information
39 @type str 41 @type str
40 @param parent reference to the parent widget 42 @param parent reference to the parent widget
41 @type QWidget 43 @type QWidget
42 """ 44 """
80 self.soLabel.setText(categories["sophos"]) 82 self.soLabel.setText(categories["sophos"])
81 self.vvLabel.setText(categories["valkyrie"]) 83 self.vvLabel.setText(categories["valkyrie"])
82 self.amLabel.setText(categories["alpha"]) 84 self.amLabel.setText(categories["alpha"])
83 self.ftsLabel.setText(categories["forcepoint"]) 85 self.ftsLabel.setText(categories["forcepoint"])
84 86
87 self.webutationAdultLabel.setText(webutation["adult"])
88 self.webutationSafetyLabel.setText(str(webutation["safety"]))
89 self.webutationVerdictLabel.setText(webutation["verdict"])
90
85 self.__whois = whois 91 self.__whois = whois
86 self.__whoisDomain = domain 92 self.__whoisDomain = domain
87 self.whoisButton.setEnabled(bool(whois)) 93 self.whoisButton.setEnabled(bool(whois))
88 94
89 @pyqtSlot() 95 @pyqtSlot()

eric ide

mercurial