Exemplo n.º 1
0
	def __init__(self, resources=None):
		Component.__init__(self)

		self.rcode = 200
		self.content = None
		self.rheads = {}

		self.refresh()
		self.static()
Exemplo n.º 2
0
	def __init__(self):
		Component.__init__(self)

##		self._apps = {}  # cached apps
		self._applist = {}  # all apps
		self._index = None  # index app
		self._error = None
		##self.environ = None
		##self.start_response = None
		self.providing["biz.environ"] = None
		self.providing["biz.startresponse"] = None
Exemplo n.º 3
0
	def prepare(self):
		Component.prepare(self)

		self.refresh()
		self.run()

		self.providing["biz.environ"] = self.properties["biz.environ"]
		##self.providing["biz.startresponse"] = self.properties["biz.startresponse"]

		self.providing["biz.response.content"] = self.content
		self.rheads["content-length"] = self.content._clen
		self.rheads["content-type"] = self.content.ctype
		self.providing["biz.response.heads"] = self.rheads
		self.providing["biz.response.code"] = self.rcode

		assert self.providesall(), "This component cannot provide all"