Shortcut used to get a contained operation by name. @param name: An operation name. @type name: str @return: The named operation. @rtype: Operation @raise L{MethodNotFound}: When not found.
(self, name)
| 753 | raise Exception("fault '%s' not defined in portType '%s'" % (fault.name, self.type.name)) |
| 754 | |
| 755 | def operation(self, name): |
| 756 | """ |
| 757 | Shortcut used to get a contained operation by name. |
| 758 | @param name: An operation name. |
| 759 | @type name: str |
| 760 | @return: The named operation. |
| 761 | @rtype: Operation |
| 762 | @raise L{MethodNotFound}: When not found. |
| 763 | """ |
| 764 | try: |
| 765 | return self.operations[name] |
| 766 | except: |
| 767 | raise MethodNotFound(name) |
| 768 | |
| 769 | def __gt__(self, other): |
| 770 | return not isinstance(other, Service) |
no test coverage detected