Update the specified I{node} by replacing the I{multiref} references with the contents of the referenced nodes and remove the I{href} attribute. @param node: A node to update. @type node: L{Element} @return: The updated node @rtype: L{Element}
(self, node)
| 55 | return body |
| 56 | |
| 57 | def update(self, node): |
| 58 | """ |
| 59 | Update the specified I{node} by replacing the I{multiref} references |
| 60 | with the contents of the referenced nodes and remove the I{href} |
| 61 | attribute. |
| 62 | @param node: A node to update. |
| 63 | @type node: L{Element} |
| 64 | @return: The updated node |
| 65 | @rtype: L{Element} |
| 66 | """ |
| 67 | self.replace_references(node) |
| 68 | for c in node.children: |
| 69 | self.update(c) |
| 70 | return node |
| 71 | |
| 72 | def replace_references(self, node): |
| 73 | """ |
no test coverage detected