Esempio n. 1
0
 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
Esempio n. 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 = {}
Esempio n. 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 = {}