diff farolluz/producttree.py @ 43:b87f2a6e613a

Add CVE parsing (from OpenVAS GSA)
author Benoît Allard <benoit.allard@greenbone.net>
date Mon, 29 Dec 2014 16:33:34 +0100
parents 809db989cac5
children 1b7f3f4f1238
line wrap: on
line diff
--- a/farolluz/producttree.py	Mon Dec 29 15:00:59 2014 +0100
+++ b/farolluz/producttree.py	Mon Dec 29 16:33:34 2014 +0100
@@ -51,6 +51,12 @@
                 return product
         raise KeyError(productid)
 
+    def getProductForCPE(self, cpe):
+        for product in self._products:
+            if product._cpe == cpe:
+                return product
+        raise KeyError(cpe)
+
     def getGroupForID(self, groupid):
         for group in self._groups:
             if group._groupid == groupid:
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)