(self, data, dispatch_method = None, path = None)
| 621 | return self.dispatchers[path] |
| 622 | |
| 623 | def _marshaled_dispatch(self, data, dispatch_method = None, path = None): |
| 624 | try: |
| 625 | response = self.dispatchers[path]._marshaled_dispatch( |
| 626 | data, dispatch_method, path) |
| 627 | except BaseException as exc: |
| 628 | # report low level exception back to server |
| 629 | # (each dispatcher should have handled their own |
| 630 | # exceptions) |
| 631 | response = dumps( |
| 632 | Fault(1, "%s:%s" % (type(exc), exc)), |
| 633 | encoding=self.encoding, allow_none=self.allow_none) |
| 634 | response = response.encode(self.encoding, 'xmlcharrefreplace') |
| 635 | return response |
| 636 | |
| 637 | class CGIXMLRPCRequestHandler(SimpleXMLRPCDispatcher): |
| 638 | """Simple handler for XML-RPC data passed through CGI.""" |
no test coverage detected