def GET(self, machine, o_type):
web.header('Access-Control-Allow-Origin', self.allow_origin)
# !! TODO handle data later
# !! TODO test with swagger
#if 'no_cache' in data:
# if not data['no_cache']:
# cmd += " --no-cache"
client_session_id = uuid.uuid4().hex
out = ""
if o_type == 'a':
out = self.INDEX_HTML%(machine, client_session_id) + \
self.INDEX_HTML_TYPE_A + \
self.INDEX_HTML_END
elif o_type == 'b':
out = self.INDEX_HTML%(machine, client_session_id) + \
self.INDEX_HTML_TYPE_B + \
self.INDEX_HTML_END
return out
评论列表
文章目录