Request succeeded, process the reply @param binding: The binding to be used to process the reply. @type binding: L{bindings.binding.Binding} @param reply: The raw reply text. @type reply: str @return: The method result. @rtype: I{builtin}, L{O
(self, binding, reply)
| 680 | return result |
| 681 | |
| 682 | def succeeded(self, binding, reply): |
| 683 | """ |
| 684 | Request succeeded, process the reply |
| 685 | @param binding: The binding to be used to process the reply. |
| 686 | @type binding: L{bindings.binding.Binding} |
| 687 | @param reply: The raw reply text. |
| 688 | @type reply: str |
| 689 | @return: The method result. |
| 690 | @rtype: I{builtin}, L{Object} |
| 691 | @raise WebFault: On server. |
| 692 | """ |
| 693 | log.debug('http succeeded:\n%s', reply) |
| 694 | plugins = PluginContainer(self.options.plugins) |
| 695 | if len(reply) > 0: |
| 696 | reply, result = binding.get_reply(self.method, reply) |
| 697 | self.last_received(reply) |
| 698 | else: |
| 699 | result = None |
| 700 | ctx = plugins.message.unmarshalled(reply=result) |
| 701 | result = ctx.reply |
| 702 | if self.options.faults: |
| 703 | return result |
| 704 | else: |
| 705 | return (200, result) |
| 706 | |
| 707 | def failed(self, binding, error): |
| 708 | """ |
no test coverage detected