示例#1
0
文件: Mitigate.py 项目: gkmacc/cairis
 def __init__(self,respId,respName,respType,mitDesc,mitCost,mitRoles,mitProps,detPt,detMech,mitRisks,mitTargets):
   Response.__init__(self,respId,respName,mitRisks,mitCost,mitRoles)
   PropertyHolder.__init__(self,mitProps)
   self.theDescription = mitDesc
   self.theDetectionPoint = detPt
   self.theDetectionMechanism = detMech
   self.theTargets = mitTargets
   self.theMitigationType = respType
示例#2
0
 def __init__(self, transaction, strmOut, headers=None):
     """Initialize the request."""
     Response.__init__(self, transaction, strmOut)
     self._committed = False
     if headers is None:
         self._headers = {}
         self.setHeader('Content-Type', 'text/html')
     else:
         self._headers = headers
     self._cookies = {}
示例#3
0
	def __init__(self, transaction, strmOut, headers=None):
		"""Initialize the request."""

		Response.__init__(self, transaction, strmOut)

		self._committed = False

		if headers is None:
			self._headers = {}
			self.setHeader('Content-type', 'text/html')
		else:
			self._headers = headers

		self._cookies = {}