def handle(self): with closing(self.odb.session()) as session: item = http_soap_audit_item(session, self.server.cluster_id, self.request.input.id).one() item.req_time_utc = item.req_time_utc.isoformat() if item.resp_time_utc: item.resp_time_utc = item.resp_time_utc.isoformat() self.response.payload = item
def handle(self): with closing(self.odb.session()) as session: item = http_soap_audit_item(session, self.server.cluster_id, self.request.input.id).one() item.req_time_utc = item.req_time_utc.isoformat() if item.resp_time_utc: item.resp_time_utc = item.resp_time_utc.isoformat() self.response.payload = item