Mercurial > farol > farolluz
diff farolluz/document.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 | 1ea1a3c3c790 |
children |
line wrap: on
line diff
--- a/farolluz/document.py Mon Dec 29 15:00:59 2014 +0100 +++ b/farolluz/document.py Mon Dec 29 16:33:34 2014 +0100 @@ -82,6 +82,7 @@ class CVRFTracking(object): STATUSES = ('Draft', 'Interim', 'Final') def __init__(self, _id, status, version, initial, current): + """ version must be a tuple of (max four) ints """ self._identification = _id self._status = status self._version = version @@ -148,6 +149,7 @@ class CVRFRevision(object): def __init__(self, number, date, description): + """ number is a tuple of (max four) ints """ self._number = number self._date = date self._description = description