add the input/output body properties
(self, definitions, body, root)
| 608 | self.operations[op.name] = op |
| 609 | |
| 610 | def body(self, definitions, body, root): |
| 611 | """ add the input/output body properties """ |
| 612 | if root is None: |
| 613 | body.use = 'literal' |
| 614 | body.namespace = definitions.tns |
| 615 | body.parts = () |
| 616 | return |
| 617 | parts = root.get('parts') |
| 618 | if parts is None: |
| 619 | body.parts = () |
| 620 | else: |
| 621 | body.parts = re.split(r'[\s,]', parts) |
| 622 | body.use = root.get('use', default='literal') |
| 623 | ns = root.get('namespace') |
| 624 | if ns is None: |
| 625 | body.namespace = definitions.tns |
| 626 | else: |
| 627 | prefix = root.findPrefix(ns, 'b0') |
| 628 | body.namespace = (prefix, ns) |
| 629 | |
| 630 | def header(self, definitions, parent, root): |
| 631 | """ add the input/output header properties """ |
no test coverage detected