comparison farolluz/cvrf.py @ 1:d47e1164740f

Add support for AggregateSeverity
author Benoît Allard <benoit.allard@greenbone.net>
date Wed, 24 Sep 2014 08:26:56 +0200
parents e18b61a73a68
children 633ebfcff0d0
comparison
equal deleted inserted replaced
0:e18b61a73a68 1:d47e1164740f
198 198
199 def __str__(self): 199 def __str__(self):
200 return self._note 200 return self._note
201 201
202 202
203 class CVRFAggregateSeverity(object):
204 def __init__(self, severity):
205 self._severity = severity
206 self._namespace = None
207
208 def setNamespace(self, namespace):
209 self._namespace = namespace
210
203 class CVRFReference(object): 211 class CVRFReference(object):
204 TYPES = ('Self', 'External') 212 TYPES = ('Self', 'External')
205 def __init__(self, url, description, _type=None): 213 def __init__(self, url, description, _type=None):
206 self._url = url 214 self._url = url
207 self._description = description 215 self._description = description
883 self._type = _type 891 self._type = _type
884 self._publisher = None 892 self._publisher = None
885 self._tracking = None 893 self._tracking = None
886 self._notes = [] 894 self._notes = []
887 self._distribution = None 895 self._distribution = None
896 self._aggregateseverity = None
888 self._references = [] 897 self._references = []
889 self._acknowledgments = [] 898 self._acknowledgments = []
890 self._producttree = None 899 self._producttree = None
891 self._vulnerabilities = [] 900 self._vulnerabilities = []
892 901
899 def addNote(self, note): 908 def addNote(self, note):
900 self._notes.append(note) 909 self._notes.append(note)
901 910
902 def setDistribution(self, distribution): 911 def setDistribution(self, distribution):
903 self._distribution = distribution 912 self._distribution = distribution
913
914 def setAggregateSeverity(self, aggregateseverity):
915 self._aggregateseverity = aggregateseverity
904 916
905 def addReference(self, ref): 917 def addReference(self, ref):
906 self._references.append(ref) 918 self._references.append(ref)
907 919
908 def addAcknowledgment(self, ack): 920 def addAcknowledgment(self, ack):
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)