Exemplo n.º 1
0
    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
Exemplo n.º 2
0
    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