def acb(self, op_hash='', **kwargs):
try:
rp = self.rph.issuer2rp[self.rph.hash2issuer[op_hash]]
except KeyError:
raise cherrypy.HTTPError(400,
"Response to something I hadn't asked for")
res = self.rph.phaseN(rp, kwargs)
if res[0] is True:
fname = os.path.join(self.html_home, 'opresult.html')
_pre_html = open(fname, 'r').read()
_html = _pre_html.format(result=create_result_page(*res[1:]))
return as_bytes(_html)
else:
raise cherrypy.HTTPError(400, res[1])
评论列表
文章目录