comparison 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
comparison
equal deleted inserted replaced
42:9ed24f48df01 43:b87f2a6e613a
80 80
81 81
82 class CVRFTracking(object): 82 class CVRFTracking(object):
83 STATUSES = ('Draft', 'Interim', 'Final') 83 STATUSES = ('Draft', 'Interim', 'Final')
84 def __init__(self, _id, status, version, initial, current): 84 def __init__(self, _id, status, version, initial, current):
85 """ version must be a tuple of (max four) ints """
85 self._identification = _id 86 self._identification = _id
86 self._status = status 87 self._status = status
87 self._version = version 88 self._version = version
88 self._history = [] 89 self._history = []
89 self._initialDate = initial 90 self._initialDate = initial
146 return s 147 return s
147 148
148 149
149 class CVRFRevision(object): 150 class CVRFRevision(object):
150 def __init__(self, number, date, description): 151 def __init__(self, number, date, description):
152 """ number is a tuple of (max four) ints """
151 self._number = number 153 self._number = number
152 self._date = date 154 self._date = date
153 self._description = description 155 self._description = description
154 156
155 def validate(self): 157 def validate(self):
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)