[PATCH 08 of 54] Add a method to get a Vulnerability Note per ordinal
Wald Commits
scm-commit at wald.intevation.org
Wed Jan 7 10:56:25 CET 2015
# HG changeset patch
# User Benoît Allard <benoit.allard at greenbone.net>
# Date 1412760953 -7200
# Node ID c924c15bd11097abbd2c891d9fcc5b3c2a653957
# Parent 633ebfcff0d0fec6f13e5de80b92a0f574dd2800
Add a method to get a Vulnerability Note per ordinal
diff -r 633ebfcff0d0 -r c924c15bd110 farolluz/cvrf.py
--- a/farolluz/cvrf.py Mon Oct 06 11:39:59 2014 +0200
+++ b/farolluz/cvrf.py Wed Oct 08 11:35:53 2014 +0200
@@ -661,6 +661,12 @@
return self._id._value
return "#%d" % self._ordinal
+ def getNote(self, ordinal):
+ for note in self._notes:
+ if note._ordinal == ordinal:
+ return note
+ return None
+
def validate(self, productids, groupids):
if not self._ordinal:
raise ValidationError('A Vulnerability must have an ordinal')
More information about the Farol-commits
mailing list