Esempio n. 1
0
 def __init__( self, data_obj=None ):
     info.__init__( self, data_obj )
     
     # Default values
     self._method = None
     self._id = None
     self._dc = None
     self._severity = None
     self._variable = None
     self._mutant = None
     
     if isinstance( data_obj, mutant ) or \
     isinstance( data_obj, vuln ):
         self.setMethod( data_obj.getMethod() )
         self.setDc( data_obj.getDc() )
         self.setVar( data_obj.getVar() )
         self.setURI( data_obj.getURI() )
         self.setMutant( data_obj )
Esempio n. 2
0
 def __init__( self, dataObj=None ):
     info.__init__( self, dataObj )
     
     # Default values
     self._method = None
     self._id = None
     self._dc = None
     self._severity = None
     self._variable = None
     self._mutant = None
     
     if isinstance( dataObj, mutant ) or isinstance( dataObj, vuln):
         self.setMethod( dataObj.getMethod() )
         # mutants dont have an ID, and sometimes I want to
         # create an instance of a vuln based on a mutant
         #self.setId( response.getId() )
         self.setDc( dataObj.getDc() )
         self.setVar( dataObj.getVar() )
         self.setURI( dataObj.getURI() )
         self.setMutant( dataObj )