eric7/WebBrowser/VirusTotal/VirusTotalDomainReportDialog.py

branch
eric7
changeset 8563
3c6547443fb2
parent 8561
641304b46f08
child 8881
54e42bc2437a
--- a/eric7/WebBrowser/VirusTotal/VirusTotalDomainReportDialog.py	Tue Aug 31 17:31:23 2021 +0200
+++ b/eric7/WebBrowser/VirusTotal/VirusTotalDomainReportDialog.py	Tue Aug 31 17:48:20 2021 +0200
@@ -20,7 +20,7 @@
     Class implementing a dialog to show the VirusTotal domain report.
     """
     def __init__(self, domain, resolutions, urls, subdomains,
-                 categories, whois, parent=None):
+                 categories, webutation, whois, parent=None):
         """
         Constructor
         
@@ -35,6 +35,8 @@
         @param categories dictionary with various categorizations with keys
             'bitdefender', 'sophos', 'valkyrie', 'alpha', 'forcepoint'
         @type dict
+        @param webutation dictionary with Webutation data with keys
+            'adult', 'safety', 'verdict'
         @param whois whois information
         @type str
         @param parent reference to the parent widget
@@ -82,6 +84,10 @@
         self.amLabel.setText(categories["alpha"])
         self.ftsLabel.setText(categories["forcepoint"])
         
+        self.webutationAdultLabel.setText(webutation["adult"])
+        self.webutationSafetyLabel.setText(str(webutation["safety"]))
+        self.webutationVerdictLabel.setText(webutation["verdict"])
+        
         self.__whois = whois
         self.__whoisDomain = domain
         self.whoisButton.setEnabled(bool(whois))

eric ide

mercurial